Help for this page

Select Code to Download


  1. or download this
    use IO::Pty;
    
    ...
    my $out = run_in_pty($cmd);
    
    print "$cmd: '$out'\n";
    
  2. or download this
    #!/usr/bin/perl
    
    ...
        print STDERR "msg-to-stderr\n";
    }
    print "msg-to-stdout\n";
    
  3. or download this
    $ ./bsub >output 2>&1