in reply to Re: Bad File descriptor Error
in thread Bad File descriptor Error

I need to download the log files from device using ftp So
using get().Any other idea is welcome.
Regards
Amit

Replies are listed 'Best First'.
Re^3: Bad File descriptor Error
by cjb (Friar) on Jan 04, 2011 at 12:56 UTC

    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

Re^3: Bad File descriptor Error
by samarzone (Pilgrim) on Jan 04, 2011 at 12:42 UTC

    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