in reply to How to grab the telnet screen output?
You'll need to use the waitfor and print (Net::Telnet) to process the initial menus. Something like this ...
For debugging, and you'll need it, use the input_log, to see all the interaction with the NetGear switch.$telnet->waitfor(Match => m{$last_line_of_the_1st_menu}smx); $telnet->print(q{a}); $telnet->waitfor(Match => m{$last_line_of_the_2nd_menu}smx); $telnet->print(q{b});
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: How to grab the telnet screen output?
by phio (Acolyte) on Jan 29, 2008 at 02:40 UTC | |
by glide (Pilgrim) on Jan 29, 2008 at 09:54 UTC |