in reply to Re^3: telnet from a cisco telnet
in thread telnet from a cisco telnet
@output=$t->print("show system"); $t->waitfor('m/]>/');
This cannot work, because the output of show system will only be available after you have assigned it into @output. You will need to use $t->cmd(...) to collect the output of a command.
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^5: telnet from a cisco telnet
by Kumar Mantri (Novice) on Aug 09, 2011 at 12:35 UTC | |
by Corion (Patriarch) on Aug 09, 2011 at 12:40 UTC |
In Section
Seekers of Perl Wisdom