Hello ikegami,
Thanks for the reply.. I am new to perl...so need some clarification...so do you mean to say that the "$test" program in "open(TH, "|$test >$tmpfn" )" is returning the error code? and it is not a standard error code due to some problem with call that it is failing.
In the documentation it is written that when using piped open, the open might suceeded..but that does not mean that the command in the open succeeded, it only means the fork succeeded, so I also verified using ps -ef and the command is getting executed.
Due to this the outfile $tmpfn is also empty
thanks
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.