Help for this page

Select Code to Download


  1. or download this
    open (SAVEOUT, ">&STDOUT") or die "Unable to copy STDOUT : $!";
    open (STDOUT, ">stdout") or die "Unable to open new STDOUT : $!";
    select STDOUT;
    $| = 1;
    
  2. or download this
    open (SAVEERR, ">&STDERR") or die "Unable to copy STDERR : $!";
    open (STDERR, ">stderr") or die "Unable to open new STDOUT : $!";
    ...
    $| = 1;
    select STDOUT;
    
  3. or download this
    open (STDINCLONE, "<stdout") or die "Unable to open first process's ST
    +DOUT : $!";
    
  4. or download this
    open (ERRORS,"<stderr") or die "Unable to open first process's STDERR 
    +: $!";