in reply to Re: perl, open and pipe
in thread perl, open and pipe
Depending on what /usr/bin/js does, that might be a bad idea. 2>&1 mixes STDERR and STDOUT into a single stream, so you may have a hard time "unmixing" them. If you need both STDOUT and STDERR, don't use open "...2>&1 |", but create two pipes manually or using IPC::Open3. If you need only STDOUT, use open "... 2> /dev/null |", if you need only STDERR, use open "... 2>&1 > /dev/null |".
Alexander
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: perl, open and pipe
by shmem (Chancellor) on May 11, 2010 at 07:48 UTC |