[Ssh-sftp-perl-users] Trapping "Can't connect" messages
Brought to you by:
dbrobins
From: Nigel R. <ni...@sy...> - 2009-01-23 18:34:44
|
Hi all. When I try to connect to a host that ssh isn't running on, for some reason, I am getting the following: Can't connect to xxxxxxx, port 22: Connection refused at /opt/perl_32/lib/site_perl/5.8.8/Net/SSH/Perl.pm line 205. How do I go about trapping that error that the script just continues or I continues in another direction? Thanks, Nigel -- Nigel Reed President & CEO Sysadmin, Inc 972 673 4199 http://www.sysadmininc.com Toastmasters District 50 Vista Division Governor 2008-2009 Awareness, Attitude and Action bring Achievement! |