Help for this page

Select Code to Download


  1. or download this
    close(STDOUT);close(STDIN);close(STDERR);
    
  2. or download this
    open STDIN, "</dev/null";
    open STDOUT, ">/dev/null";
    open( STDERR, ">>/path/to/logfile");