Beefy Boxes and Bandwidth Generously Provided by pair Networks
Problems? Is your data what you think it is?
 
PerlMonks  

Re: How to catch Net::FTP timeouts ?

by zakzebrowski (Curate)
on Sep 24, 2004 at 13:44 UTC ( #393501=note: print w/ replies, xml ) Need Help??


in reply to How to catch Net::FTP timeouts ?

Actually, the perldoc synopsis for Net::FTP says:

$ftp->get("that.file") or die "get failed ", $ftp->message;
which would solve your problem...


----
Zak - the office


Comment on Re: How to catch Net::FTP timeouts ?
Download Code
Replies are listed 'Best First'.
Re^2: How to catch Net::FTP timeouts ?
by Brutha (Friar) on Sep 28, 2004 at 09:17 UTC
    This only works, if the file does not exist, but as soon as the transfer starts, it returns the filename, even if the file is only downloaded partially. You can restart the download with the proper parameters, but you have to find out first.

    The eval version seems to be the answer to my problem.

    Thanks again for all help.

    And it came to pass that in time the Great God Om spake unto Brutha, the Chosen One: "Psst!"
    (Terry Pratchett, Small Gods)

      Gratias. I'll keep that in mind.


      ----
      Zak - the office

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others avoiding work at the Monastery: (9)
As of 2015-07-28 10:53 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 (254 votes), past polls