Beefy Boxes and Bandwidth Generously Provided by pair Networks
"be consistent"
 
PerlMonks  

Re: Bad File descriptor Error

by samarzone (Pilgrim)
on Jan 04, 2011 at 08:00 UTC ( #880325=note: print w/ replies, xml ) Need Help??


in reply to Bad File descriptor Error

am trying to get a list of log files from a mobile device

get() tries to retrieve a file not the list of files. Why don't you use ls()?

--
Regards
- Samar


Comment on Re: Bad File descriptor Error
Select or Download Code
Replies are listed 'Best First'.
Re^2: Bad File descriptor Error
by amvarma (Initiate) on Jan 04, 2011 at 11:17 UTC
    I need to download the log files from device using ftp So
    using get().Any other idea is welcome.
    Regards
    Amit

      It looks like the ftp server can't find the file you're requesting. What happens if you try to download the files listed in "api_log_file.txt" using a ftp client?

      edited: 20110104 12:57 GMT to remove spelling mistake

      I am not sure about the leading backslash problem but I have something to suggest.

      You have a file "api_log_file.txt" containing the names of files to be downloaded. You should use ls() to get the list of files and iterate over this list to download selected files instead of a list (@arr) from a different source.

      --
      Regards
      - Samar

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://880325]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others surveying the Monastery: (14)
As of 2015-07-29 14:29 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (263 votes), past polls