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
Post a Comment