TrinityInfinity has asked for the wisdom of the Perl Monks concerning the following question:
... you get the picture. Is there something I'm doing wrong or misinterpreting when reading the CPAN documentation about matching and timeouts?$match = '/\[0c/'; $matchop = $match; $hostname = 'silly.vax.machine'; $vax = new Net::Telnet(Prompt => $match); $vax->errmode("return"); $vax->open($hostname); #$vax->dump_log($dumplog); $start = localtime(); $vax->login(Name => $login, Password => $password) || die "cannot logi +n to $hostname"; $vax->cmd(String => $string1, Timeout => 30, Prompt => $matchop); $vax->cmd(String => $string2, Timeout => 30, Prompt => $matchop); $vax->cmd(String => $string3, Timeout => 55, Prompt => $matchop);
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Any Net::Telnet() gurus?
by traveler (Parson) on Aug 22, 2001 at 20:25 UTC | |
|
Re: Any Net::Telnet() gurus?
by the_slycer (Chaplain) on Aug 22, 2001 at 23:47 UTC |