in reply to Re^2: How do you launch a background process and get pid?
in thread How do you launch a background process and get pid?
open(STDOUT, "/dev/null"); # suppressing output open(STDERR, "/dev/null"); # suppressing output
Yes, this suppresses output, but accidentally. You open STDOUT and STDERR for input. That may confuse your child process. What you really want is the three-argument form of open, used for output:
open STDOUT,'>','/dev/null'; open STDERR,'>','/dev/null';
Alexander
|
|---|