[Ssh-sftp-perl-users] Can I test for connection reset and also supress warnings
Brought to you by:
dbrobins
From: Steve C. <st...@oc...> - 2008-07-29 17:55:17
|
Hello all, I'm using Net::SFTP to perform a scheduled batch transfer from one of my servers to a client's server and I'm running into one potentially critical issue and one "would-be-nice" issue. First, it would appear as though my clients SFTP server is occasionally reseting (or dropping) the connection. When this happens my automated transfer script completely dies with a closing connection message. Is it possible for me to trap this error (or test whether or not my $sftp object is connected) and have the script reconnect to the server to resume transfer? And secondly, the less important issue... my clients server doesn't allow me to fsetstat which doesn't appear to be a problem at all, but the script is outputting a large number of "Couldn't fsetstat: Operation unsupported" messages. I'd like to disable only that message if possible as it's not entirely useful while other error messages & warnings are. Any help would be much appreciated --- Steve Comrie |