ruby - background/daemon process -


I have a script that is coded down as well, I want to run it as a background / daemon process But once I start the script, I close the terminal window, which ends the program. What do I need to do to run the program

  loop the pid = fork do .......... ................ ...... end Process.detach (pid) end    

all above The answers actually show how easy it is to:

  # Panning the process and staying in the existing directory process. Pneumatic (true) pipe pid = Process.fork do # Do Some Funky End Process Vitipid (PID) # Reduce CPU usage (0.1) end    

Comments

Popular posts from this blog

qt - switch/case statement in C++ with a QString type -

python - sqlite3.OperationalError: near "REFERENCES": syntax error - foreign key creating -

Python's equivalent for Ruby's define_method? -