soul has asked for the wisdom of the Perl Monks concerning the following question:
The line giving problems in the above code is : print $telnet->cmd( `dir` );#!/usr/bin/perl use Net::Telnet(); $telnet = new Net::Telnet ( Timeout=>10, Errmode=>'die', Prompt => '/[>]/'); $telnet->open('servername'); $telnet->login('username', 'password'); print $telnet->cmd( 'dir' );
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: NET::TELNET to access Windows Servers
by ikegami (Patriarch) on Nov 29, 2004 at 06:01 UTC | |
Re: NET::TELNET to access Windows Servers
by rupesh (Hermit) on Nov 29, 2004 at 06:19 UTC | |
Re: NET::TELNET to access Windows Servers
by Juerd (Abbot) on Nov 29, 2004 at 12:33 UTC | |
Re: NET::TELNET to access Windows Servers
by Heretyk (Scribe) on Nov 30, 2004 at 02:02 UTC | |
Re: NET::TELNET to access Windows Servers
by soul (Initiate) on Dec 01, 2004 at 07:04 UTC |