hotshot has asked for the wisdom of the Perl Monks concerning the following question:
Hello all!
I have a cgi script that calls an external script to run on background, for example:
when I run a regular perl scripts that calls $myScript in the background, I have no problem, the prompt returns immediatelly and the script runs in the background.
Anyone has an idea what's the problem here and how to solve it?
Thanks
I have a cgi script that calls an external script to run on background, for example:
The problem is that the apache probably waits on this script and returns only after the script ends (I wrote such a script that only sleeps for 30 sec and the web page returned to me after 30 sec and not immediatelly as expected).`$myScript &`;
when I run a regular perl scripts that calls $myScript in the background, I have no problem, the prompt returns immediatelly and the script runs in the background.
Anyone has an idea what's the problem here and how to solve it?
Thanks
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: http waits on process
by waswas-fng (Curate) on Jan 13, 2004 at 18:14 UTC | |
Re: http waits on process
by etcshadow (Priest) on Jan 13, 2004 at 20:57 UTC | |
by hotshot (Prior) on Jan 14, 2004 at 08:03 UTC |
Back to
Seekers of Perl Wisdom