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..
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...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 $?" ;
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
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |