in reply to Re: How can I redirect STDOUT and STDERR from a program on WIN32?
in thread How can I redirect STDOUT and STDERR from a program on WIN32?

On windows the null device is simply 'NUL' I belive.

To make it portable do this instead.

use File::Spec; sub phork { #... open(STDOUT, '> ' . File::Spec->devnull); open(STDERR, '> ' . File::Spec->devnull); #... }
That _should_ do it.
  • Comment on Re: Answer: How can I redirect STDOUT and STDERR from a program on WIN32?
  • Download Code