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:
Rob
Cheers,my @output; $chan->blocking(1); $chan->exec('nas_server -list'); while (<$chan>) {push @output, $_} print for @output;
Rob
|
---|
In Section
Seekers of Perl Wisdom