Re: Launching a subprocess without waiting around for the result?

2008-09-19 Thread r0g
erikcw 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?

Re: Launching a subprocess without waiting around for the result?

2008-09-19 Thread r0g
erikcw 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?

Re: Launching a subprocess without waiting around for the result?

2008-09-19 Thread Almar Klein
Ah, no, that's a different thing. If the parent exits, the child will also be killed I believe. Not if it's stuck in some endless loop... If you want to spawn a process and have it live on independent of the parent, you want to make the child process a daemon, detatching itself from the

Re: Launching a subprocess without waiting around for the result?

2008-09-19 Thread Marco Bizzarri
On Fri, Sep 19, 2008 at 10:48 PM, Almar Klein [EMAIL PROTECTED] wrote: Ah, no, that's a different thing. If the parent exits, the child will also be killed I believe. Not if it's stuck in some endless loop... If you want to spawn a process and have it live on independent of the parent, you

Re: Launching a subprocess without waiting around for the result?

2008-09-19 Thread Gary Herron
Almar Klein wrote: Ah, no, that's a different thing. If the parent exits, the child will also be killed I believe. Not if it's stuck in some endless loop... If you want to spawn a process and have it live on independent of the parent, you want to make the child process a

Re: Launching a subprocess without waiting around for the result?

2008-09-19 Thread Michael Palmer
On Sep 18, 5:33 pm, erikcw [EMAIL PROTECTED] 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

Launching a subprocess without waiting around for the result?

2008-09-18 Thread erikcw
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! --

Re: Launching a subprocess without waiting around for the result?

2008-09-18 Thread Ben Finney
erikcw [EMAIL PROTECTED] writes: 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. For how do I deal with subprocesses from Python, the (new in Python 2.4)

Re: Launching a subprocess without waiting around for the result?

2008-09-18 Thread erikcw
On Sep 18, 3:33 pm, Ben Finney [EMAIL PROTECTED] wrote: erikcw [EMAIL PROTECTED] writes: 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. For how do I deal

Re: Launching a subprocess without waiting around for the result?

2008-09-18 Thread Ben Finney
erikcw [EMAIL PROTECTED] writes: On Sep 18, 3:33 pm, Ben Finney [EMAIL PROTECTED] wrote: erikcw [EMAIL PROTECTED] writes: What is the correct way to launch subprocess without waiting for the result to return? Creating an instance of 'subprocess.Popen' will launch the process and

Re: Launching a subprocess without waiting around for the result?

2008-09-18 Thread John Fabiani
erikcw wrote: On Sep 18, 3:33 pm, Ben Finney [EMAIL PROTECTED] wrote: erikcw [EMAIL PROTECTED] writes: 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. For