Help for this page

Select Code to Download


  1. or download this
     # various ways of starting a connection returning a $pid
     my ($in, $out ,$pid) = $ssh->open2("foo");
     my ($pty, $pid) = $ssh->open2pty("foo");
     my ($in, $out, $err, $pid) = $ssh->open3("foo");
     my ($pty, $err, $pid) = $ssh->open3pty("login");
    
  2. or download this
    kill 9, $pid;
    
  3. or download this
    use Proc::Killfam;
    killfam 9, $pid
    
  4. or download this
    $0 = 'rastoboy-ssh'; # :-)