A
Aditya Mahajan
Hi,
I want to run an external program in ruby. The external program takes
a long time to execute. While running, it gives the information on
stdout about what it is doing. How can I run the external program
inside ruby so that I can capture this information, and display it on
stdout? I tried %x{...}, `...` and system("...."), but all of them
give me a result AFTER the external program has finished executing,
not during its execution.
Thanks,
Aditya
I want to run an external program in ruby. The external program takes
a long time to execute. While running, it gives the information on
stdout about what it is doing. How can I run the external program
inside ruby so that I can capture this information, and display it on
stdout? I tried %x{...}, `...` and system("...."), but all of them
give me a result AFTER the external program has finished executing,
not during its execution.
Thanks,
Aditya