I have a Ruby script that I need to have running all the time in my Linux box. I tried nohup ruby ruby.rb& but it seems it doesn\'t work.
nohup ruby ruby.rb&
How can I have
Depending on your needs:
fork do Process.setsid sleep 5 puts "In daemon" end puts "In control script"
In real life you will have to reopen STDOUT/STDERR.