RE: [Ssh-sftp-perl-users] Need help with Net::SSH2
Brought to you by:
dbrobins
From: Bobby J. <bob...@se...> - 2006-03-30 00:29:02
|
Hi Sandy, I have attempted the following: #!/usr/bin/perl=20 use strict;=20 use Net::SSH::Perl;=20 my $user =3D "root";=20 my $pass =3D "password";=20 my $host =3D "192.168.0.173";=20 my $cmd =3D "cat /proc/meminfo";=20 my $ssh =3D Net::SSH::Perl->new($host);=20 $ssh->login($user, $pass);=20 my($stdout, $stderr, $exit) =3D $ssh->cmd($cmd);=20 =20 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 |