On 31 Oct 2003, Anno Siegel <> wrote:
> Public Interest <> wrote in comp.lang.perl.misc:
>> Another very very big problem:
>>
>> The CGI still want for the exec to be finished!!!. I have printout from the
>> EXEC. and it kept showing on my browser!!!
>>
>> So they are still not independent.
>
> That is because the child's STDOUT is the same as the parent's. If you
> don't want to see output, re-direct it in the child process.
In other words look for daemonize in 'perldoc perlipc'. It shows how to
fork a child and disassociate itself from the parent (your CGI). Of
course your CGI should provide some proper output to either just
acknowledge, or advise the browser if the fork fails.
Once you fork the child and disassociate it from the parent, it could run
your 2 other processes.
--
David Efflandt - All spam ignored
http://www.de-srv.com/
http://www.autox.chicago.il.us/ http://www.berniesfloral.net/
http://cgi-help.virtualave.net/ http://hammer.prohosting.com/~cgi-wiz/