Help for this page

Select Code to Download


  1. or download this
    sub ops_do_ssh_shell {
       my ($cmd) = @_;
    ...
       defined $cmd->{status} or $cmd->{status} = 'success';
       $cmd->{status} eq 'success' ? 1 : 0;
    }
    
  2. or download this
    my $cmd = {
       user => 'oracle',
    ...
       };
    
    my $status = ops_do_ssh_shell($cmd);