RE: [Ssh-sftp-perl-users] Need help with Net::SSH2
Brought to you by:
dbrobins
From: Matthew J. S. <vag...@ya...> - 2006-03-30 03:15:06
|
You need to install the Net::SSH::Perl module. you can use the cpan shell to install it # cpan install Net::SSH::Perl libnet-ssh-perl is probably used by Net::SSH --- Bobby Jafari <bob...@se...> wrote: > Hi Sandy, > I have attempted the following: > #!/usr/bin/perl > use strict; > use Net::SSH::Perl; > my $user = "root"; > my $pass = "password"; > my $host = "192.168.0.173"; > my $cmd = "cat /proc/meminfo"; > my $ssh = Net::SSH::Perl->new($host); > $ssh->login($user, $pass); > my($stdout, $stderr, $exit) = $ssh->cmd($cmd); > > I get the following error, even though I have > installed libnet-ssh-perl > on my debian Linux server. > Can't locate Net/SSH/Perl.pm in @INC (@INC contains: > /etc/perl > /usr/local/lib/perl/5.8.4 > /usr/local/share/perl/5.8.4 /usr/lib/perl5 > /usr/share/perl5 /usr/lib/perl/5.8 > /usr/share/perl/5.8 > /usr/local/lib/site_perl .) at > 1023-sessions-delete500-memorySqueeze.pl > line 8. > BEGIN failed--compilation aborted at > 1023-sessions-delete500-memorySqueeze.pl line 8. > There were 2 Failures in Test Case > 1023-sessions-delete500-memorySqueeze.pl > __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com |