In article <[EMAIL PROTECTED]>,
 [EMAIL PROTECTED] wrote:

>i wanted to start execute a command and put it in the background. i am
>using Unix.
>Usually i start this command using something like this :
>"/path/somecmd  &" with the "&" to put it to background.

Even if it's in the background with "&", it is still liable to get 
killed with a SIGHUP signal when you log off.

To stop this, you need to make sure the process is in its own process 
session group, by using the setsid system call. Not sure if there's any 
standard Python binding for this: but there is a setsid command that you 
could use from the shell.
-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to