Help for this page

Select Code to Download


  1. or download this
    $ssh->error and
        die "remote ls command failed: " . $ssh->error;
    
  2. or download this
    use Net::OpenSSH;
    use Net::OpenSSH::Constants qw(:error);
    ...
    print "OUT: $output\n";
    print "ERR: $errput\n";
    print "RC: $?\n";