in reply to Net::Telnet core dumps
Many of them don't use close() (but it's a good idea). None of them that I've seen use DESTROY. Perl should call this automatically for you at the end of the block, when $ses goes out of scope.my $ses = new Net::Telnet(); $ses->open(Host => $hostname, Port => $port);
You can debug timeout errors with the input_log() and dump_log() methods. The first shows filtered output from the remote session, and the latter shows unfiltered. Something like:
might do the trick.$logtxt = $ses->dump_log(); &logit;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
RE: Re: Net::Telnet core dumps
by raflach (Pilgrim) on Apr 19, 2000 at 20:27 UTC | |
by chromatic (Archbishop) on Apr 20, 2000 at 00:10 UTC |