poolboi has asked for the wisdom of the Perl Monks concerning the following question:
#!perl\bin\perl use strict; use warnings; my $t; my @lines; my @ok; use Net::Telnet(); $t = new Net::Telnet(timeout=>1500); $t->open("ip_address"); $t->waitfor('/ENTER USERNAME < /i'); $t->print("username"); $t->waitfor('/ENTER PASSWORD < /i'); $t->print("password"); @ok = $t->getlines; print @ok;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: why is it taking so long to read all the lines in net::Telnet
by pc88mxer (Vicar) on Apr 22, 2008 at 04:06 UTC | |
|
Re: why is it taking so long to read all the lines in net::Telnet
by ig (Vicar) on Apr 22, 2008 at 05:32 UTC | |
by poolboi (Acolyte) on Apr 22, 2008 at 05:51 UTC | |
by ikegami (Patriarch) on Apr 22, 2008 at 06:54 UTC |