Beefy Boxes and Bandwidth Generously Provided by pair Networks
P is for Practical
 
PerlMonks  

Re: Capturing SSH output in an array.

by salva (Abbot)
on Nov 14, 2012 at 14:54 UTC ( #1003827=note: print w/ replies, xml ) Need Help??


in reply to Capturing SSH output in an array.

There was a silly bug on Net::SSH::Any breaking password authentication. It is now corrected on version 0.02 that I have just uploaded to CPAN.

use Net::SSH::Any; my $ssh = Net::SSH::Any->new($host, user => $user, password => $passwo +rd); my @out = $ssh->capture($cmd);


Comment on Re: Capturing SSH output in an array.
Download Code

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others surveying the Monastery: (8)
As of 2015-07-07 23:59 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 (93 votes), past polls