running a python script in the background

Dirkjan Ochtman dochtman at
Sat Oct 30 12:09:05 CEST 2004

I've found in the past that it might work better when you redirect 
stdout and stderr, since errors will arise when the Python script 
suddenly doesn't have either anymore because your session ended.

python >& /dev/null &



>>What has worked for me in the past is to SSH to localhost, executing:
>>"nohup python &" and disconnecting.  It should work running
>>from a local terminal (without SSH), but I can't guarantee it.
>> - Josiah

More information about the Python-list mailing list