M
mail4ashok
Hi
I am trying to capture output from another script(Tcl) with in a Perl
script. I read the FAQ's and usenet post's before I posted.
My requirements are
1. Capture output from external script
2. Write the output on STDOUT
3. The output should be unbuffered( basically show output
synchronously)
I can capture and print to STDOUT using
print ($a=`script`);
but the o/p gets buffered. Setting $| has no effect.
I can use Perl system function to redirect but I loose terminal output.
Sorry, If a method is explained in FAQ, it's possible that I did not
understand.
Any example to do this is appreciated.
Thanks
I am trying to capture output from another script(Tcl) with in a Perl
script. I read the FAQ's and usenet post's before I posted.
My requirements are
1. Capture output from external script
2. Write the output on STDOUT
3. The output should be unbuffered( basically show output
synchronously)
I can capture and print to STDOUT using
print ($a=`script`);
but the o/p gets buffered. Setting $| has no effect.
I can use Perl system function to redirect but I loose terminal output.
Sorry, If a method is explained in FAQ, it's possible that I did not
understand.
Any example to do this is appreciated.
Thanks