in reply to Net::SSH2 test connection to remote host
See eval:
my $ssh2 = Net::SSH2->new(); my $res = eval { $ssh2->connect($server)); 1 }; if (my $err = $@) { warn "There was an error connecting to $server: $err"; };
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Net::SSH2 test connection to remote host
by derby (Abbot) on Sep 30, 2008 at 11:49 UTC | |
by Corion (Patriarch) on Sep 30, 2008 at 11:52 UTC | |
by JavaFan (Canon) on Sep 30, 2008 at 12:06 UTC | |
by salva (Canon) on Sep 30, 2008 at 15:45 UTC | |
by JavaFan (Canon) on Sep 30, 2008 at 21:20 UTC | |
| |
by kyle (Abbot) on Sep 30, 2008 at 15:53 UTC | |
|
Re^2: Net::SSH2 test connection to remote host
by james_ (Novice) on Sep 30, 2008 at 10:59 UTC |