in reply to Interactive input via telnet
$telnet->print("/opt/bea/tuxedo8.1/bin/tmloadcfGPPconfig.ubb"); my ($prematch,$match) = $telnet->waitfor( -match => $telnet->prompt, # to wait for the + regular prompt -match => qr{\[y,\s*q\]}, # wait for the [y +, q] prompt ); $telnet->cmd("y") if ($match =~ qr{\[y,\s*q\]} );
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Interactive input via telnet
by Noame (Beadle) on Nov 05, 2007 at 13:59 UTC | |
by glide (Pilgrim) on Nov 05, 2007 at 18:10 UTC |