asynchronous python call

Lawrence D'Oliveiro ldo at geek-central.gen.new_zealand
Thu Apr 9 07:32:00 CEST 2009

In message <griv9b$k2b$1 at>, Aahz wrote:

> In article
> <637028a0-58b9-4912-896d-2b17e13414fe at>,
> joeygartin  <joeygartin at> wrote:
>> So I was hoping there was a way to spin off the process and
>>redirect the user to the page while the emails are being formed and
>>sent vs. making the page hang while it is done.
> The simplest solution is to create an external program and use the
> subprocess module to call it.

You'll probably want to call os.setsid, so that the child process keeps 
running after the parent terminates.

More information about the Python-list mailing list