Running python automatically in the background
msurette at laframboise.net
Wed Jan 28 16:14:26 CET 2004
On Tue, 27 Jan 2004 17:29:53 -0800, Alfred wrote:
> hi all,
> i'm trying to figure out if there is some easy way to run a python
> script in the background _without_ specifying "&" in a linux
> script.py &
> is there an easy way to do this?
> been looking around but couldn't find any docs to support a
> - al
I forget where I first found this snippet, but it's probably what you want.
if PID != 0: sys.exit()
More information about the Python-list