Beefy Boxes and Bandwidth Generously Provided by pair Networks
go ahead... be a heretic
 
PerlMonks  

Re: Unable to store the command output from Net::SSH2. Please help.

by salva (Monsignor)
on Oct 28, 2012 at 17:19 UTC ( #1001280=note: print w/ replies, xml ) Need Help??


in reply to Unable to store the command output from Net::SSH2. Please help.

Net::SSH2::Channel::exec does not capture the output of the remote command, it just launches it. You have to use the read method afterward to retrieve the output.

On Unix/Linux systems Net::OpenSSH is far easier to use. Or there is also Net::SSH::Any that can work on top of Net::SSH2 and provides a simpler to use API, though it is still not a mature module.


Comment on Re: Unable to store the command output from Net::SSH2. Please help.
Select or Download Code

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1001280]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others chanting in the Monastery: (5)
As of 2014-09-17 00:29 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    How do you remember the number of days in each month?











    Results (55 votes), past polls