Assuming the form data is posted from a browser, if you send the browser an 
appropriate HTTP header, which could even be a 204 to mean "do nothing", then close 
STDOUT, the browser will think everything's done while your script can continue to 
execute. Note that STDOUT is truly closed, however. This may not be what you want in 
persistent environments.

---------------FROM-------------------
David R. Miller
Senior Programmer
Medical Council of Canada
[EMAIL PROTECTED]
(613) 521-6012 x 2265
(613) 521-9722 (fax)
-----------------------------------------

Original message:
Message: 2
From: "JulianL Brown" <[EMAIL PROTECTED]>
To: [EMAIL PROTECTED]
Subject: Execute and return immediately.
Date: Mon, 09 Feb 2004 13:04:41 -0600

My original question must have baffled you.  I want a perl script responding 
to a cgi-form to execute another perl script yet return immediately.

I have tried system and Win32::Process::Create to no avail, regardless of 
which or how I have used it, the cgi script only returns when the "child" 
process has finished.

Has anyone done this before?

Any ideas on how to do it?

Bodger

_______________________________________________
Perl-Win32-Web mailing list
[EMAIL PROTECTED]
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs

Reply via email to