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 Heesob
···
2008/9/26 Junkone <junkone1@gmail.com>:
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 Fri, Sep 26, 2008 at 9:34 PM, Junkone <junkone1@gmail.com> 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
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
···
On Sep 26, 10:56 am, botp <botp...@gmail.com> wrote:
On Fri, Sep 26, 2008 at 9:34 PM, Junkone <junko...@gmail.com> 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 ideastry,
exec("ruby mycron.rb") if fork==nil