running a python script in the background
Dirkjan Ochtman
dochtman at cs.vu.nl
Sat Oct 30 06:09:05 EDT 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 script.py >& /dev/null &
HTH,
Dirkjan
>>What has worked for me in the past is to SSH to localhost, executing:
>>"nohup python script.py &" 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