Beefy Boxes and Bandwidth Generously Provided by pair Networks
Your skill will accomplish
what the force of many cannot
 
PerlMonks  

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

by perl514 (Pilgrim)
on Nov 06, 2012 at 18:56 UTC ( #1002559=note: print w/ replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    #!/usr/bin/perl
    use Modern::Perl;
    ...
    my $ssh = Net::SSH::Any->new ($host, user => $user, password => $passw
    +d);
    my @output = $ssh->capture2("ls -l");
    say "@output";
    
  2. or download this
    Use of uninitialized value $output[0] in join or string at anyping.pl 
    +line 10.
    

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others cooling their heels in the Monastery: (5)
As of 2014-07-12 08:19 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    When choosing user names for websites, I prefer to use:








    Results (238 votes), past polls