start ruby process

J

Junkone

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
 
H

Heesob Park

2008/9/26 Junkone said:
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
 
B

botp

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
 
J

Junkone

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
474,201
Messages
2,571,048
Members
47,647
Latest member
NelleMacy9

Latest Threads

Top