Hi,

I am trying to write a python cgi script, that invokes another process and
exists.
Using the subprocess documentation on NO_WAIT, I am not having much success:

pid = os.spawnlp(os.P_NOWAIT, "/bin/mycmd", "mycmd", "myarg")
==>
pid = Popen(["/bin/mycmd", "myarg"]).pid

The script seems to wait for the new process to exit before returning to the
user.

I tried doing the double-fork approach discussed here:
http://code.activestate.com/recipes/66012/

I am not having much luck.

Any ideas on how to accomplish this appreciated.

thanks,
Ravi.
_______________________________________________
Tutor maillist  -  Tutor@python.org
http://mail.python.org/mailman/listinfo/tutor

Reply via email to