Sir,

I want to use Telnet.pm which is located in having a path namely,
"/usr/local/lib/perl5/site_perl/5.005/Net .

But, when I write a code which is below, I get an error telling me that it is
not able to find the Telnet.pm file in @INC (@INC contains :
/usr/local/lib/perl5/site_perl/5.005/alpha-dec_osf
/usr/local/lib/perl5/site_perl/5.005 . )

#!/usr/bin/perl

use lib '/d48/home/sharmar/ftp/';



print("I am trying telnetting\n");
use Net::Telnet ();
$telnet = Telnet( Timeout=>10,Errmode=>'die',Prompt => '/\$ $/i', Input_log =>
'input_file', Output_log => 'output_file');

$fh
$telnet->open('aald02.alcatel.com.au');
$telnet->login('linus', 'ChangeMe');
print $telnet->cmd('who');
print($date);

How can I get the required thing working !

Thanks in advance,
Rajat


Reply via email to