Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
How do i write a waitfor statement if my input log displays following lines on executing setup as on line 5 in the code.use Net::Telnet; $telnet->open('godavari.bec.ge.com'); $telnet->login ('anand','anand'); $telnet->waitfor('/\$ $/i'); $telnet->cmd("./EJS1.3.7.0/ejs/solaris/setup -console"); $telnet->waitfor('/ Continue $/i') or die "Can't find enter to contin +ue", $telnet->lastline; $telnet->print(''); $telnet->close; exit;
edited: Mon Jun 21 17:56:53 2004 by jeffa - code tags
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Problem in usage of waitfor in Telnet module
by Happy-the-monk (Canon) on Jun 21, 2004 at 15:42 UTC | |
|
Re: Problem in usage of waitfor in Telnet module
by tele2mag (Initiate) on Jun 21, 2004 at 18:08 UTC |