Start ruby process

how to start a ruby process that is not dependent on the process
initiaing it.
i tried doing system(‘ruby myCron.rb’) but as soon as my process
ended, the mycron.rb process disappeared.
any ideas

2008/9/26 Junkone [email protected]:

how to start a ruby process that is not dependent on the process
initiaing it.
i tried doing system(‘ruby myCron.rb’) but as soon as my process
ended, the mycron.rb process disappeared.
any ideas

If you are running on Windows, try system(‘start ruby myCron.rb’)

Regards,

Park H.

On Fri, Sep 26, 2008 at 9:34 PM, Junkone [email protected] wrote:

how to start a ruby process that is not dependent on the process
initiaing it.
i tried doing system(‘ruby myCron.rb’) but as soon as my process
ended, the mycron.rb process disappeared. any ideas

try,

exec(“ruby mycron.rb”) if fork==nil

On Sep 26, 10:56 am, botp [email protected] wrote:

On Fri, Sep 26, 2008 at 9:34 PM, Junkone [email protected] wrote:

how to start a ruby process that is not dependent on the process
initiaing it.
i tried doing system(‘ruby myCron.rb’) but as soon as my process
ended, the mycron.rb process disappeared. any ideas

try,

exec(“ruby mycron.rb”) if fork==nil

what is the difference between exec(“ruby mycron.rb”) if fork==nil
and system(‘ruby myCron.rb’)
which is better in terms of reliability and resource consumptions