J
juky
Hi all,
I'm using a Net::Telnet to send some commands to a router.
What I need to check now is my connection status after I sent any
commands. In some cases when I upload the router with particular
command it resets the connection and I must login again.
How can I do it?
Here my code:
.....
....
my $session = Net::Telnet->new(Host => $rt,
Timeout => 30);
{login part}
while ...... {
$session->print($command);
($output,$a)=$session->waitfor(Match => '/#/');
}
Thanks.
Juky
I'm using a Net::Telnet to send some commands to a router.
What I need to check now is my connection status after I sent any
commands. In some cases when I upload the router with particular
command it resets the connection and I must login again.
How can I do it?
Here my code:
.....
....
my $session = Net::Telnet->new(Host => $rt,
Timeout => 30);
{login part}
while ...... {
$session->print($command);
($output,$a)=$session->waitfor(Match => '/#/');
}
Thanks.
Juky