in reply to Re: Print debug information from Net::FTP
in thread Print debug information from Net::FTP

dir+filename is not my actual code, I just didn't wan't to display the complete path.
The code works, but not all of the time. It works approx. 3 out of 4 times.
Thanks for the -f tip!
  • Comment on Re^2: Print debug information from Net::FTP

Replies are listed 'Best First'.
Re^3: Print debug information from Net::FTP
by bowei_99 (Friar) on Apr 01, 2006 at 20:18 UTC
    What's the specific timeout message you're getting? Also, have you tried setting the debug level to something higher? According to the Net::Cmd docs (since Net::FTP inherits from Net::Cmd), the debug level may be set to more than 1, and different packages give different response.

    Update: You might also try using a network sniffer (if that's allowed on your network) to see what's actually being passed between your Linux and Windows box. Ethereal comes installed on a lot of linux distros, and has a pretty nice GUI, or, if you prefer the command line, you can use tcpdump.

    -- Burvil

      Error executing run mode 'send_file': Cannot connect to host: Net::FTP: connect: timeout at /home/domains/xxx/www.xxx.com/aa/system/modules//FTP.pm line 16. at /home/domains/xxx/www.xxx.com/aa/index.cgi line 20
      I don't know how to se the result of the debug information!