in reply to Net::SSH::Any does not return output for few specific commands
$ssh = Net::SSH::Any->new($hostname, user => $username, password => $p +assword); $ssh->error and die "unable to connect to remote host: " . $ssh->error +; $out = $ssh->capture(“who am I”); $ssh->error and die "remote command failed: " . $ssh->error; print $out;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Net::SSH::Any does not return output for few specific commands
by magic_007 (Initiate) on Apr 02, 2013 at 16:35 UTC | |
by magic_007 (Initiate) on Apr 02, 2013 at 17:37 UTC |