Help for this page

Select Code to Download


  1. or download this
    # command that redirects STDERR to file
    $command = 'myapp --flag=somearg 2>>/var/log/myapp.err';
    
  2. or download this
    # NOTHING is written to the original .err file
    # instead, STDERR is sent to STDOUT
    qx($command 2>&1)