Beefy Boxes and Bandwidth Generously Provided by pair Networks
good chemistry is complicated,
and a little bit messy -LW
 
PerlMonks  

Re^2: Capturing SSH output in an array.

by salva (Abbot)
on Nov 15, 2012 at 09:37 UTC ( #1003982=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    my $ssh = Net::SSH::Any->new($hostname, user => $user, key_path => "/h
    +ome/$user/.ssh/id_dsa");
    if ($ssh->error) {
    ...
        say "The files and directories of $username on $hostname are given
    + below";
        say "@out";
    }
    

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1003982]
help
Chatterbox?
[choroba]: I'm looking forward to stable nonexperimental signatures, but before they arrive, I'm ok with my ($self, $blah) = @_

How do I use this? | Other CB clients
Other Users?
Others making s'mores by the fire in the courtyard of the Monastery: (5)
As of 2017-11-24 13:51 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    In order to be able to say "I know Perl", you must have:













    Results (349 votes). Check out past polls.

    Notices?