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;
In reply to Re^2: Net::Telnet / file question
by sonicscott9041
in thread Net::Telnet / file question
by sonicscott9041
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |