in reply to ubernewbie question--- Net::Telnet problem
in thread Net::Telnet problem
I get a bunch of stuff (the stuff that goes in and out over the telnet connection) in dump.log. Are you actually trying to open a connection? I doubt you'll get anything in your dump_log file if you don't *do anything*. :)use Net::Telnet; my $telnet = Net::Telnet->new(Timeout => 10); $telnet->dump_log("dump.log"); $telnet->open("machine"); $telnet->login("user", "oass"); $telnet->close;
Oh, and your second snippet is wrong. That's not a filehandle; that's a diamond-operator *read* from a filehandle. STDOUT is the filehandle, <STDOUT> is you reading from the filehandle. You want
$telnet->dump_log(*STDOUT);
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
using Net::Telnet to test Apache
by meonkeys (Chaplain) on Nov 12, 2000 at 05:16 UTC |