Click here to get back home

Net::FTP connection status

 HomeNewsGroups | Search | About
 comp.lang.perl.modules    Post an article   get this group's latest topics as an RSS feed add this group's latest topics to your My MSN content add this group's latest topics to your My Yahoo content
Subject Author Date
Net::FTP connection status Steve Heaven 03-15-2006
Posted by Steve Heaven on March 15, 2006, 3:34 am
Please log in for more thread options



How can I determine if a Net::FTP connection is still up?

We have an app that transfers anything from 1 to several hundred files
in a session. Occasionally the connection seems to drop (though
netstat on the server says its still up) I would like to be able to
query the status of the connection before each 'put'.
The only way we can see how is to do an 'ls' or 'pwd' and then check
$@ if they fail.

Any better way ?

Thanks

Steve


Similar ThreadsPosted
Net::telnet - need to retrieve the exit status August 22, 2005, 6:00 pm
mod_perl 1.29: send_fh(): result status? August 24, 2005, 12:55 pm
No connection using LWP October 27, 2006, 5:30 pm
net::sftp connection close May 4, 2006, 6:27 am
NET::SFTP - how to close connection September 28, 2006, 7:22 am
Using a DBI connection in many places (in the code) August 4, 2008, 4:39 am
Passing a DBI connection between [Unix] processes January 7, 2005, 1:01 pm
How do I force a close connection in SOAP January 26, 2006, 1:00 pm
How to include a connection file in perl December 2, 2006, 3:11 pm
Need to handle the NNTP connection timeout in my code February 8, 2007, 4:51 am

Our other projects:

Art Dolls, Fairies and Mermaids - Sunnyfaces.net

Roy's Linux, Programming and Search Engines messages

1-Script XML SitemapXML Sitemap