Help on Net::Telnet perl module

2011-07-08 Thread Irfan Sayed
hi, i am using Net::Telnet module to connect to remote hosts i able to to successfully connect to remote host and run the "ls" command but the issue is , the output of command is not getting printed to scalar variable use Net::Telnet (); $t = new Net::Telnet (Timeout => 10, Prompt => '/bash\

Re: Help on Net::Telnet perl module

2011-07-08 Thread Jim Gibson
On 7/8/11 Fri Jul 8, 2011 5:59 AM, "Irfan Sayed" scribbled: > hi, > > i am using Net::Telnet module to connect to remote hosts > i able to to successfully connect to remote host and run the "ls" command > but the issue is , the output of command is not getting printed to scalar > variable >

Re: Help on Net::Telnet perl module

2011-07-08 Thread Irfan Sayed
ards irfan From: Jim Gibson To: Perl Beginners Sent: Friday, July 8, 2011 10:47 PM Subject: Re: Help on Net::Telnet perl module You chose to allow Jim Gibson (jimsgib...@gmail.com) even though this message failed authentication Click to disallow

Re: Help on Net::Telnet perl module

2011-07-08 Thread Jim Gibson
On 7/8/11 Fri Jul 8, 2011 12:43 PM, "Irfan Sayed" scribbled: > here is the actual code > > > use Net::Telnet; > $telnet = new Net::Telnet ( Timeout=>10, Errmode=>'die'); > $telnet->open('10.216.119.53'); > $telnet->waitfor('/login: $/i'); > $telnet->print('abc'); > $telnet->waitfor('/password

Re: Help on Net::Telnet perl module

2011-07-09 Thread Irfan Sayed
the dump_log and input_log says , it has successfully connected to remote server and executed the "ls " command but @lines does not contain any output of "ls" command/ this is also not happening plz suggest ________________ From: Jim Gibson To: Irfan Sayed ;

Re: Help on Net::Telnet perl module

2011-07-11 Thread John Mason Jr
On 7/9/2011 2:46 PM, Irfan Sayed wrote: modified the code. my $t = new Net::Telnet (Timeout => 20, Prompt => '/bash\$ $/', Dump_Log => $filename, Input_log => $file, Errmod