Beefy Boxes and Bandwidth Generously Provided by pair Networks
Think about Loose Coupling
 
PerlMonks  

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

by syphilis (Canon)
on Oct 29, 2012 at 09:21 UTC ( #1001324=note: print w/ replies, xml ) Need Help??


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

Based on what works for me on Windows (connecting to a linux server) you should be able to do:

my @output; $chan->blocking(1); $chan->exec('nas_server -list'); while (<$chan>) {push @output, $_} print for @output;
Cheers,
Rob


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

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others examining the Monastery: (12)
As of 2015-07-31 09:58 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (276 votes), past polls