Thread Connection Timeout abfangen: Perl Programmierung (10 answers)
Opened by sri at 2004-07-28 15:37

sri
 2004-07-28 15:47
#38045 #38045
User since
2004-01-29
828 Artikel
BenutzerIn
[Homepage] [default_avatar]
Code: (dl )
1
2
3
4
5
6
7
8
9
10
for (lalala...) {
eval {
my $session = Net::Telnet::Cisco->new(Host => '$Geraet');
$session->login('login', 'password');
my @output = $session->cmd('show version');
print @output;
$session->close;
}
print "Da is was schief gelaufen: $@\n" if $@;
}

Ergänzug zu Ronnies code. :)

View full thread Connection Timeout abfangen: Perl Programmierung