in reply to help add a sleep or waitfor into NET:Telnet:Cisco

You have tried setting the 'timeout' value associated with the login, right?
$session->login (name=>"admin", password=>"default", timeout=>30);
Maybe you could provide a code snippet of what is not working, if this is not your problem?

Replies are listed 'Best First'.
Re^2: help add a sleep or waitfor into NET:Telnet:Cisco
by dgalati000 (Initiate) on Feb 20, 2009 at 14:58 UTC
    morning, pasting in the code from the code I'm working off of. Error msg is at line 42 (pattern match) >> $session->login(Name => $username, Password => $userpassword); YOUR suggestion relates to line 41 and that reads Timeout uses the scalar of $secs....which I've tried to manipulate. thank you for the comeback. $secs = 30; my $session = Net::Telnet::Cisco->new(Host => $ip_address, Timeout => $secs);