I am sure somebody would have a magical touch for me.

-Sharad

-----Original Message-----
From: Gupta, Sharad 
Sent: Saturday, August 16, 2003 9:03 PM
To: [EMAIL PROTECTED]
Subject: Net::Telnet



Hi All,

I have a small script like this:

-------------------------------------------------------------------
use strict;
use Net::Telnet;

my $host = "Wilma";
my $username = "Foo";
my $pass = "Bar";

my $s = Net::Telnet->new( Host=>$host,
                          input_log => "input_log",
                          dump_log => "dump_log",
                        );
$s->login($username,$pass);
$s->print("ls");
print $s->getlines();
----------------------------------------------------------------------


I can run this from a nix machine without any problems. But when i try to run the same 
from a win2k machine it fails with 
"read timed-out" message. But the input_log file contains the correct output. Any 
ideas why getlines is timing out.



Thanx for help,
-Sharad 




-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to