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?
Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
Read Where should I post X? if you're not absolutely sure you're posting in the right place.
Please read these before you post! —
Posts may use any of the Perl Monks Approved HTML tags:
- a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
| |
For: |
|
Use: |
| & | | & |
| < | | < |
| > | | > |
| [ | | [ |
| ] | | ] |
Link using PerlMonks shortcuts! What shortcuts can I use for linking?
See Writeup Formatting Tips and other pages linked from there for more info.