asynchronous python call

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


In message <griv9b$k2b$1 at panix3.panix.com>, Aahz wrote:

> In article
> <637028a0-58b9-4912-896d-2b17e13414fe at q16g2000yqg.googlegroups.com>,
> joeygartin  <joeygartin at gmail.com> 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