perl-modperl mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Ken Y. Clark" <kcl...@logsoft.com>
Subject Re: closing STDOUT & STDERR
Date Tue, 06 May 2003 19:06:20 GMT
On Tue, 6 May 2003, Peter Fernandez wrote:

> Date: Tue, 06 May 2003 14:17:49 -0400
> From: Peter Fernandez <pfernand@gsd.harvard.edu>
> To: modperl@perl.apache.org
> Subject: closing STDOUT & STDERR
>
> Hello-
>
> I am a first-time poster - I have looked for a clear answer to this
> question in the archives & FAQ's and have been unsuccessful. I appreciate
> any insight the listmembers can supply.
>
> I am trying to find the best way to make a system call (to a standalone
> script) from a mod_perl enabled CGI script so that my cgi sends a message
> to the browser, spawns the script as a separate process, and then CLOSES
> stdout & stderr - the script i'd like to call runs for a few minutes so I
> don't want the browser to be waiting for a response from it - i just want
> it to run on its own. I've been playing around with Apache::SubProcess but
> it doesn't seem to let go and waits for the subprocess to finish before
> sending a response to the browser.
>
> I would like to know if any listmembers have had success with this in the
> mod_perl environment. I would love a code snippet or two as well. I am
> running Apache/1.3.26 (Unix) mod_perl/1.27 on Solaris.
>
> Thanks so much in advance.
>
> Peter Fernandez
> Webmaster
> Harvard Design School

Peter,

Have you consulted The Guide?

http://perl.apache.org/docs/1.0/guide/performance.html#Starting_a_Long_Running_External_Program

HTH,

ky

Mime
View raw message