Unless I'm missing something here, I think you simply want to use Net::SSH::Perl.
The example in the docs does a great job of what you're asking:
Hope that helps.use Net::SSH::Perl; my $ssh = Net::SSH::Perl->new($host); $ssh->login($user, $pass); my($stdout, $stderr, $exit) = $ssh->cmd($cmd);
-Craig
In reply to Re: Net::SSH2::Channel question
by cmv
in thread Net::SSH2::Channel question
by drfunk2458
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |