Hi, I have a program "cross_match" on my system, which parses a DNA file. It dumps a ton of text garbage on the screen. I have tried all the standard ways of redirecting output:
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
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?