Hi Monks !

I'm sure some of you can help me with this - it seems like there must be a really simple solution, I just don't know it because of my inexperience ...

I'm using backticks to execute a command in my script, and the command (it's another perl script) is designed to output a whole heap of text to stdout (basically using bzcat).

I'm running my script and trying to capture the output of the backtick command, and feed that out through a pipe to the current stdout. Does that make sense ?

However, my problem is that whenever I run my script, I can see the command that I have called running on the system, but the text that it generates as output is never shown on my stdout, and so I'm unable to pipe it to the program I'm trying to run.

Can anybody help ?

I'm willing to paste code or explain myslef more clearly if needs be ... :->

Drew


In reply to lines written to stdout by a backtick command by oceanic

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • 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:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.