Home > Archive > PERL CGI Beginners > May 2004 > Display while forked
You are viewing an archived Text-only version of the thread.
To view this thread in it's original format and/or if you want to reply to
this thread please [click here]
| Author |
Display while forked
|
|
| Jason Normandin 2004-05-22, 11:31 am |
| Hi List !!
I have a cgi sctipt that forks a process during execution. I would like to
display a message to the user after the fork occurs. Semething like
displaying an animated gif or something to inform the user the task is in
progress as the forked process can take 10-20 secs to complete.
How can I go about this ?
I can't event get output to the browser untill after the fork completes even
though I have set $|=1 (turn off the buffer)
Thoughts ?
Thanks!
| |
| Wc -Sx- Jones 2004-05-22, 11:31 am |
| Jason Normandin wrote:
> I can't event get output to the browser untill after the fork completes even
> though I have set $|=1 (turn off the buffer)
Display the message BEFORE the fork;
research NPH CGI programming.
-Sx-
| |
| Randal L. Schwartz 2004-05-22, 11:31 am |
| >>>>> "Jason" == Jason Normandin <jason_normandin@charter.net> writes:
Jason> I have a cgi sctipt that forks a process during execution. I
Jason> would like to display a message to the user after the fork
Jason> occurs. Semething like displaying an animated gif or something
Jason> to inform the user the task is in progress as the forked
Jason> process can take 10-20 secs to complete.
Please take time to search and study the 192 magazine articles
I've written (and continue to write):
http://www.stonehenge.com/merlyn/WebTechniques/
http://www.stonehenge.com/merlyn/UnixReview/
http://www.stonehenge.com/merlyn/LinuxMag/
http://www.stonehenge.com/merlyn/PerlJournal/
when looking for places to learn about Perl. In particular,
I've addressed this issue various ways, probably the closest plan is
the "traceroute" solution:
<http://www.stonehenge.com/merlyn/LinuxMag/col39.html>.
There's hardly ANYTHING that comes up here that I haven't addressed.
Especially about CGI. I've pretty much beat that into the ground. :)
--
Randal L. Schwartz - Stonehenge Consulting Services, Inc. - +1 503 777 0095
<merlyn@stonehenge.com> <URL:http://www.stonehenge.com/merlyn/>
Perl/Unix/security consulting, Technical writing, Comedy, etc. etc.
See PerlTraining.Stonehenge.com for onsite and open-enrollment Perl training!
|
|
|
|
|