Beefy Boxes and Bandwidth Generously Provided by pair Networks
There's more than one way to do things
 
PerlMonks  

Re: Perl Net::FTP put() gives little help on errors

by ruzam (Curate)
on Jan 07, 2010 at 14:04 UTC ( [id://816106]=note: print w/replies, xml ) Need Help??


in reply to Perl Net::FTP put() gives little help on errors

I've also found Net::FTP put() unreliable at times. When it fails unexpectedly the message isn't always accurate as you've found, often it contains the message of a previous ftp action which makes it totally useless.

My work around is to:

(a) check the result of put()
(b) if it fails, close the ftp session, and open it again
(c) put() the file again
(d) repeat from (a) as many times as you can stand to wait (usually the second time works)

I've found it doesn't do any good to try resending the file without closing and opening the ftp session first.

  • Comment on Re: Perl Net::FTP put() gives little help on errors

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others perusing the Monastery: (9)
As of 2024-04-18 13:15 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found