Help for this page

Select Code to Download


  1. or download this
    #!/usr/bin/perl -w
    # Description: Fool a process into
    ...
    
    #cleanup pty for next run
    $pty->close();
    
  2. or download this
    #!/usr/bin/perl
    use IO::Handle;
    ...
    
    my $fh = do_cmd();
    while (<$fh>) { print; }
    
  3. or download this
    #!/usr/bin/perl 
    use warnings;
    ...
    
    my $result = <OUT>;
    print $result;