Hi..,

As you have suggested, currently i'm using IPC::Run module to redirect the STDIN and STDOUT of the particular perl script. In this i'm getting some issues..here is some sample code..

my $h = start \@cat, \$in_q, '>>', "out.txt", '2>>', "err.txt", debug + => 0 ; $in_q = "help\n" ; pump $h; $in_q = "lscomp\n"; pump $h; finish $h or die "cat returned $?" ;
Issue: After "pump" the all the inputs and "finish" it only...i will get the result for all the inputs....But i need immediate result (response) for every "pump" operation .... In my case for each input, the output have more than 10 lines of response...

So please ..can you help me for my problem.....!

jdporter added missing markup


In reply to Re^2: How to redirect STDIN and STDOUT to the particular perl script by Anonymous Monk
in thread How to redirect STDIN and STDOUT to the particular perl script by Anonymous Monk

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.