in reply to Re: Net::Telnet / file question
in thread Net::Telnet / file question
The print "O" (letter, not number) starts the report 'on-screen'. This prints the first screen of the report, then pauses with the 'Press any key to continue'. A human would basically look at the report one screen at a time (like the 'more' command on linux). However, by sending the print "N" command, it then runs the rest of report to the screen without any more of those 'Press any key to continue' messages. Thanks!$t->print("O"); ($op1) = $t->waitfor('/Press any key to continue/'); print nvfile $op1; $t->print("N"); ($op2) = $t->waitfor('/REPORT COMPLETE/'); print nvfile $op2;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: Net::Telnet / file question
by Illuminatus (Curate) on Jul 21, 2009 at 20:16 UTC | |
by sonicscott9041 (Novice) on Jul 21, 2009 at 21:17 UTC |