markcsmith has asked for the wisdom of the Perl Monks concerning the following question:
I would like to catch EVERYTHING that a program barfs out for output. Whenever I try either of the following:
open OPUT, "command|"; @read = <OPUT>; close OPUT;
@read = `command`;
It works fine until there's a message that "appears" to be sent to STDERR instead of STDOUT. How do I not let anything go by? Whenever something escapes, the shell suspends my program b/c I stuck it in the background :(
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: being oppresive to output
by fglock (Vicar) on Oct 30, 2002 at 21:24 UTC | |
by Thelonius (Priest) on Oct 31, 2002 at 00:29 UTC | |
by Jenda (Abbot) on Oct 30, 2002 at 23:45 UTC | |
by sharkey (Scribe) on Oct 31, 2002 at 20:12 UTC |