Hi,
I am trying to use the net::telnet module from a Solaris machine to an NT machine but am having problems. Basically the output of my script does not return despite that the dump.log and input.log show the correct output. Has anyone gotten this to work? Here is a code snippet:
use Net::Telnet;
$telnet = new Net::Telnet( Timeout=>10,
Errmode=>'die',
Prompt => '/C:\\\>/',
dump_log => 'dump.log',
input_log => 'input.log',
output_log => 'output.log',
);
$telnet->open('HOSTNAME');
$telnet->login('Administrator', '*****');
@output = $telnet->cmd('c:\\winnt\\system32\\hostname');
print "output:-> @output <- \n";
I am trying to use the net::telnet module from a Solaris machine to an NT machine but am having problems. Basically the output of my script does not return despite that the dump.log and input.log show the correct output. Has anyone gotten this to work? Here is a code snippet:
use Net::Telnet;
$telnet = new Net::Telnet( Timeout=>10,
Errmode=>'die',
Prompt => '/C:\\\>/',
dump_log => 'dump.log',
input_log => 'input.log',
output_log => 'output.log',
);
$telnet->open('HOSTNAME');
$telnet->login('Administrator', '*****');
@output = $telnet->cmd('c:\\winnt\\system32\\hostname');
print "output:-> @output <- \n";