I have no idea if the fact that I'm doing this from a Win32 system has any bearing on this or not, but it's really starting to drive me up a wall. Here's my situation:
I'm writing to applications that are run by an end user who has installed ActivePERL and a web server on their machine. So the server and the client are the same box, the application is being access via The problem I'm running into is that on a few functions the time it takes to complete is far longer than the timeout on the web server is set to. Rather than having the end user mess with the web server settings, I'd rather have it fixed within the script. From what I can tell, the way to do this is to fork the script, have the child do all the work while the parent prints HTML to the client stating that there is work being done, and having it meta refresh every few seconds. After the child is finished have it exit, and then the parent detects that the child is done and prints new HTML stating that the child is done and the program can continue.
I've tried many different types of syntax and I can't get any of them to take. I've seen several code samples, but it just won't fly. In pseudo code here's what I'm looking for:
At least I *think* that's how it goes. Anyone out there able to help me?
I'm writing to applications that are run by an end user who has installed ActivePERL and a web server on their machine. So the server and the client are the same box, the application is being access via The problem I'm running into is that on a few functions the time it takes to complete is far longer than the timeout on the web server is set to. Rather than having the end user mess with the web server settings, I'd rather have it fixed within the script. From what I can tell, the way to do this is to fork the script, have the child do all the work while the parent prints HTML to the client stating that there is work being done, and having it meta refresh every few seconds. After the child is finished have it exit, and then the parent detects that the child is done and prints new HTML stating that the child is done and the program can continue.
I've tried many different types of syntax and I can't get any of them to take. I've seen several code samples, but it just won't fly. In pseudo code here's what I'm looking for:
Code:
Fork the script
if (parent){
print html that refreshes "work in progress";
when child is done, print html "work done, continue?";
}
elsif(child){
do lots and lots of work taking lots of time;
exit();
}
At least I *think* that's how it goes. Anyone out there able to help me?