For Programmers: Free Programming Magazines  


Home > Archive > PERL Modules > March 2006 > Net::FTP connection status









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author Net::FTP connection status
Steve Heaven

2006-03-15, 3:55 am


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

Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com