magic_007 has asked for the wisdom of the Perl Monks concerning the following question:
A newbie to Perl. I was trying to use Net::SSH::Any module to execute some commands on Linux box from my perl code and get the output. It works fine but for few commands.
use Net::SSH::Any; $ssh = Net::SSH::Any->new($hostname, user => $username, password => $p +assword); $out = $ssh->capture(“who am I”); print $out;
Result: No output @ all. “Who am I” command doesn’t return anything. Please let me know if I'm missing something here"
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: Net::SSH::Any does not return output for few specific commands
by salva (Canon) on Apr 02, 2013 at 16:28 UTC | |
by magic_007 (Initiate) on Apr 02, 2013 at 16:35 UTC | |
by magic_007 (Initiate) on Apr 02, 2013 at 17:37 UTC |
Back to
Seekers of Perl Wisdom