Beefy Boxes and Bandwidth Generously Provided by pair Networks
XP is just a number

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);

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1003827]
[Corion]: ambrus: AnyEvent(::HTTP) doesn't integrate well with Prima, that's my main problem
[Corion]: There is a weirdo shim because there is a POE integration for Prima, and if you use that, you can use the POE adapter of AnyEvent. What I'd want is something transport agnostic that parses HTTP or produces HTTP output, so that the communication with ...
[Corion]: ... the socket is done by my code. Ideally that module would not be based on callbacks ;)

How do I use this? | Other CB clients
Other Users?
Others rifling through the Monastery: (6)
As of 2016-12-07 15:43 GMT
Find Nodes?
    Voting Booth?
    On a regular basis, I'm most likely to spy upon:

    Results (130 votes). Check out past polls.