laziness, impatience, and hubris | |
PerlMonks |
Re: Net::telnet questionby lwicks (Friar) |
on Apr 22, 2008 at 12:54 UTC ( [id://682157]=note: print w/replies, xml ) | Need Help?? |
You can use something like: $t->waitfor( Match => '/FLMON>/', Timeout => 120 ); to look for the prompt. This is particularly handy if the prompt changes through the process.
Else if the prompt remains static, you can set the prompt permanently like this:
Obviously, http://search.cpan.org/~jrogers/Net-Telnet-3.03/lib/Net/Telnet.pm is place to look for more details.
Hope that helps. Kia Kaha, Kia Toa, Kia Manawanui!
In Section
Seekers of Perl Wisdom
|
|