I\'d like a daemonizer that can turn an arbitrary, generic script or command into a daemon.
There are two common cases I\'d like to deal with:
I hav
First get createDaemon() from http://code.activestate.com/recipes/278731/
createDaemon()
Then the main code:
import subprocess import sys import time createDaemon() while True: subprocess.call(" ".join(sys.argv[1:]),shell=True) time.sleep(10)