hi all,
i got time out at my login line of my script
any ideas why this is happening?
i'm on perl 5.10 and on windows XP
it must be te absence of the prompt,
but the problem is i got no idea where to get the prompt
pls help
use Net::Telnet;
my $telnet3;
$telnet3 = new Net::Telnet(timeout => 10,
Errmode => 'die');
$telnet3->open('ip_address');
$telnet3->login('username', 'password');
@lines = $telnet3->cmd("who");
open(FILE, ">file.txt");
print FILE ("@lines\n");
print("logged in to the device.\n");