Bill Kelly
2/28/2006 7:35:00 AM
From: "Navya Amerineni" <navyaamerineni@yahoo.com>
>
> How can we run a a ruby program from another ruby program. I am
> working on one program where in i have to run another ruby program
> from it.
Hi,
Usually
result = `other_program`
or
system("other_program")
or
io = IO.popen("other_program", "r") # or "w" if you want to write to it
io.gets # ... read stdout from other_program
...
Regards,
Bill