in reply to Re: How to redirect STDIN and STDOUT to the particular perl script
in thread How to redirect STDIN and STDOUT to the particular perl script

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

  • Comment on Re^2: How to redirect STDIN and STDOUT to the particular perl script
  • Download Code