dorp has asked for the wisdom of the Perl Monks concerning the following question:
For some strange reason, no matter what I've tried, it still manages to dump a ton of garbage on the screen. Does anyone know of another way?system("cross_match -arguments > /dev/null"); # dumps garbage anyway `cross_match`; # dumps garbage anyway system("cross_match -arguments 2>&1"); # won't work because cross_matc +h manages to interpret 2>&1 as an invalid argument system("cross_match -arguments > log.txt 2>&1"); # won't work because +of "ambiguous redirect" open("cross_match -arguments |"); #won't work because cross_match mana +ges to interpret | as an invalid argument open2(\*REALIN, \*REALOUT, "cross_match -arguments"); # crashes, says +arguments have to be passed on the command line
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Output redirection -- hard
by bikeNomad (Priest) on Aug 07, 2001 at 08:14 UTC | |
|
Re: Output redirection -- hard
by ariels (Curate) on Aug 07, 2001 at 15:29 UTC | |
|
Re: Output redirection -- hard
by mischief (Hermit) on Aug 07, 2001 at 14:44 UTC | |
|
Re: Output redirection -- hard
by ws_stefan (Initiate) on Aug 07, 2001 at 10:28 UTC | |
by physi (Friar) on Aug 07, 2001 at 10:46 UTC |