Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

net::telnet and windows 'telnet' server

Status
Not open for further replies.

bsharm1

MIS
Mar 24, 2003
5
US
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 &quot;output:-> @output <- \n&quot;;
 
I may be talking through my hat here, but I was under the impression that NT does not contain a native telnet server and therefore cannot accept incoming sessions without third party software being installed. Certainly I cannot get your script to work on my setup either.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top