Help for this page

Select Code to Download


  1. or download this
    my $pty = new IO::Pty;
    $pty->set_raw();
    ...
    }
    close $pty->slave;
    event_loop_passing_data_between($pty, $socket)
    
  2. or download this
    use POSIX;
    my $pid = fork();
    ...
        close STDIN; close STDOUT; close STDERR;
        RunCommand( ... );
    }