For Programmers: Free Programming Magazines  


Home > Archive > PERL Modules > July 2004 > platform independent fork









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 platform independent fork
Nath

2004-07-18, 3:56 pm

I am trying to write a cgi script that executes a piece of perl code
(including a system call that may take several minutes to complete the
executed task). I would like to display a message with a link to retrieve
the results of a system call to the web browser while the remaining perl
code is executed (inc the system calls) so the browser doesn't timeout. I
understand that this can be done on a linux machine using fork (does anyone
have a snippet of code as an example?), but i would also like to make the
scripts platform independent (or at least windows compatable) so the website
can be run from a windows or linux machine....how could i do something
similar for a windows machine (does anyone have any example code)?

Any help is appeciated as i have not done any work regarding forking
processes before!

Thanks
Nathan


Krishna News Account

2004-07-18, 3:56 pm

Nath wrote:

> executed task). I would like to display a message with a link to retrieve
> the results of a system call to the web browser while the remaining perl
> code is executed (inc the system calls) so the browser doesn't timeout. I


I searched on 'browser timeout' on http://perlmonks.org and got some useful
information on keeping the browser from timing out.


Krishna Sethuraman
bogus-krishgoo@wapacut-fake.com
Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com