Hashmat Khan wrote: > > Has anybody used Telnet ? > > I want to know, how can we redirect the output to STDOUT instead of > log file ? (Dump_Log => "dump.txt")
It's important to tell us exactly what module you're using. Telnet is a comms protocol but I don't think you mean that. There is no Perl module called Telnet but there are many with Telnet in the name. I assume you're using Net::Telnet as it has a Dump_Log parameter to the constructor method, but it would have been much better if you'd said so. I haven't used the module, but the documentation says that the dump_log method will accept an open file handle as well as a file name so $object->dump_log(\*STDOUT); should work. It should also be OK to put it as a parameter to the constructor as in my $object = Net::Telnet->new(Dump_Log => \*STDOUT); if you'd rather do it like that. Give it a try and see. HTH, Rob -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] http://learn.perl.org/