czachary has asked for the wisdom of the Perl Monks concerning the following question:
I am new to coding in Net::OpenSSH. When running the code below, I received the following message after the output was displayed. "Killed by signal 1" Does anyone know what could be causing this message and how to correct it?
ThanksMy Code:
use Net::OpenSSH; my $host ='host'; my $user = 'user'; my $password = 'passwd'; my $ssh = Net::OpenSSH->new(host => $host, user => $user, password => +$password, ssh_cmd => '/usr/bin/ssh'); $ssh->error and die "SSH connection failed: " . $ssh->error; my $rv = $ssh->system("ls -l"); print "$rv\n";
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Net::OpenSSH error message
by dmlond (Acolyte) on Oct 08, 2009 at 20:07 UTC | |
|
Re: Net::OpenSSH error message
by salva (Canon) on Oct 08, 2009 at 20:22 UTC | |
|
Re: Net::OpenSSH error message
by Wiggins (Hermit) on Oct 09, 2009 at 12:49 UTC | |
by salva (Canon) on Oct 09, 2009 at 13:26 UTC |