Help for this page

Select Code to Download


  1. or download this
    my($out,$err) = $ssh->cmd($cmd);
    print "the output is $out\n"
    
  2. or download this
    #!/usr/bin/perl
    
    ...
    
    my ( $stdout, $stderr, $exit ) = $ssh->cmd($cmd);
    print $stdout, "\n";