R
ryanmhuc
I'm using Net::SSH:erl to connect to remote server but when every I
run commands it is sending output to STDOUT.
$ssh = Net::SSH:erl->new($ip);
$ssh->login($user, $pass);
($out, $err, $ext) = $ssh->cmd("ls -l");
So when I run the command instead of the the command output being put
into $out it goes straight to STDOUT. Furthermore if the password is
incorrect the $ssh->cmd stops my program. Anyone know how to get
around this?
run commands it is sending output to STDOUT.
$ssh = Net::SSH:erl->new($ip);
$ssh->login($user, $pass);
($out, $err, $ext) = $ssh->cmd("ls -l");
So when I run the command instead of the the command output being put
into $out it goes straight to STDOUT. Furthermore if the password is
incorrect the $ssh->cmd stops my program. Anyone know how to get
around this?