Re: Can not run ssh command inside perl script !

2012-08-31 Thread Shlomi Fish
Hello Jack, On Fri, 31 Aug 2012 17:00:12 +0700 Jack Vo wrote: > Hello List, > > I'm trying to execute a script which retrieves swap usage memory in > remote host. So that I install Net::SSH::Perl module (from source > code) from CPAN website. > My script below : > > #!/usr/bin/perl -w > > use

Can not run ssh command inside perl script !

2012-08-31 Thread Jack Vo
Hello List, I'm trying to execute a script which retrieves swap usage memory in remote host. So that I install Net::SSH::Perl module (from source code) from CPAN website. My script below : #!/usr/bin/perl -w use strict; use Net::SSH::Perl; my $hostname = "192.168.7.5"; my $username = "abcd";