Beefy Boxes and Bandwidth Generously Provided by pair Networks
There's more than one way to do things
 
PerlMonks  

Ssh and qx

by cbeckley (Curate)
on Mar 30, 2017 at 18:04 UTC ( #1186526=CUFP: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    sub ops_do_ssh_qx {
       my ($cmd) = @_;
    ...
    
       return $cmd;
    }
    
  2. or download this
    my $cmd = { name => 'foo',
                user => 'foo_user',
    ...
                command => 'do_something_useful_here',
                success => SUCCESS
    };
    
  3. or download this
    my $cmd_status = ops_do_ssh_qx($cmd);
    if ( $cmd_status->{success} ) {
    ...
    {
       do_something_with $cmd_status->{cmd_ret_code}, $cmd_status->{ssh_re
    +t_code}, $cmd_status->{ssh_ret_msg};
    }
    
  4. or download this
       $cmd_status->{cmd_ret_code}
       $cmd_status->{ssh_ret_code}
       $cmd_status->{ssh_ret_msg}
    

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: CUFP [id://1186526]
Approved by AppleFritter
Front-paged by Arunbear
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others exploiting the Monastery: (2)
As of 2022-05-17 17:08 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Do you prefer to work remotely?



    Results (68 votes). Check out past polls.

    Notices?