Help for this page

Select Code to Download


  1. or download this
    my ($stop, $pid_stop) = $ssh->open2pty("sudo -k; sudo service ntp stop
    +")
        or die "open2pty failed: " . $ssh->error . "\n";
    
  2. or download this
    ($in, $out, $err, $pid) = $ssh->open_ex(\%opts, @cmd)