Re: Mongrel crashes while running ''exec'' through ruby

Tahir Rauf
Thu, 11 Jun 2009 07:31:16 -0000

Frederick Cheung wrote:
> On Jun 11, 7:54�am, Tahir Rauf
<rails-mailing-l...-ARtvInVfO7ksV2N9l4h3zg@public.gmane.org>
> wrote:
>> Hi All,
>>
>> I have a ruby on rails application and in the controller, I try to run
a
>> shell script using exec command
>
> You know that the whole point of the exec command is that it replaces
> the current process with what you tell it to run? You may be more
> interested in ``, system or things like IO.popen
>
> Fred

Thanks Fred, As far as i know system is for windows, and Currently my
application is deployed on linux.

Can you tell me more about IO.popen ?

I just need to run a script and want the control back to the same
process..