Help for this page

Select Code to Download


  1. or download this
    $expect->send("$command\n");
    
  2. or download this
    my ($pty, $pid) = $ssh->open2pty({stderr_to_stdout => 1}, 'su', '-c', 
    +$command)
        or die "Can't open PTY: $!\n";