Irfan J Sayed (isayed) wrote:
>
> Thanks for reply.
> 
> I have Perl.pm installed in following path
> [EMAIL PROTECTED] scripts]$ ls -l /tmp/Net/SSH/
> total 32
> -rwxr--r-- 1 cgadgil cgadgil 32724 Aug 13 06:42 Perl.pm
> [EMAIL PROTECTED] scripts]$
> 
> And perl script I modified as follows
> #! /usr/bin/perl;
> 
> # perl module to parse the AVMInstall.log file for errors
> 
> use lib '/tmp';
> use Net::SSH::Perl;
>     my $ssh = Net::SSH::Perl->new(avm-qa-cam2.cisco.com);
>     $ssh->login(cgadgil, cgadgil);
>     my($stdout, $stderr, $exit) = $ssh->cmd(ls);
> 
> And now I am getting another error as 
> Can't locate Net/SSH/Perl/Packet.pm in @INC (@INC contains: /tmp
> /usr/lib/perl5/site_perl/5.8.8/i386-linux-thread-multi
> 
> Now do I need to download Packet.pm and store in the same location? And
> what is the purpose of it.
> Please suggest.

You've only installed part of Net::SSH::Perl. I've just downloaded version 1.30
and looked at it and it consists of 46 filed in 9 directories, one of them being
Packet.pm as you describe. It's my guess you've just copied one file to the
right place? You should go through the full installation or it's unlikely to 
work.

Rob

-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
http://learn.perl.org/


Reply via email to