platform independent fork

Do you have a question? Post it now! No Registration Necessary.  Now with pictures!

Threaded View
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 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!


Re: platform independent fork

User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7)
X-Accept-Language: en-us, en
MIME-Version: 1.0
Newsgroups: comp.lang.perl.modules
Subject: Re: problem
Content-Type: text/plain; charset=us-ascii; format=flowed
Content-Transfer-Encoding: 7bit
Lines: 8
X-Trace: attbi_s52 1090180714 (Sun, 18 Jul 2004 19:58:34 GMT)
NNTP-Posting-Date: Sun, 18 Jul 2004 19:58:34 GMT
Organization: Comcast Online
Date: Sun, 18 Jul 2004 19:58:34 GMT
Xref: core-easynews comp.lang.perl.modules:50940

Site Timeline