Launching a subprocess without waiting around for the result?
Michael Palmer
m_palmer45 at yahoo.ca
Fri Sep 19 18:37:01 EDT 2008
On Sep 18, 5:33 pm, erikcw <erikwickst... at gmail.com> wrote:
> Hi,
>
> I have a cgi script where users are uploading large files for
> processing. I want to launch a subprocess to process the file so the
> user doesn't have to wait for the page to load.
>
> What is the correct way to launch subprocess without waiting for the
> result to return?
>
> Thanks!
both os.spawn or subprocess can be used. I actually find subprocess
hard to remember so usually prefer os.spawn. For various examples and
explanations, see
http://effbot.org/librarybook/os.htm
More information about the Python-list
mailing list