No such thing as a small change | |
PerlMonks |
comment on |
( [id://3333]=superdoc: print w/replies, xml ) | Need Help?? |
Dear Monks, I've got a simple CGI web form that gathers some input from the user, runs a perl script that takes 2-3 minutes to complete, and then displays the results. During the 2-3 minutes that the program is running, I'd like to display an "in-progress" page that will periodically self-refresh and give the user messages about its status. This seems like it should be straightforward, but I can't seem to figure out how to do it. I realize this is similar to the issue addressed here: Managing a long running server side process using CGI, but my code is running on Apache 2.2.15 (Red Hat), not on windows. I'm not sure how to properly initiate a child process on this server. I tried using fork(), but it doesn't seem to work (as far as I can tell, the child process never gets executed). Google pointed me to some rather vague references to a module called Apache2::SubProcess, but it's not clear to me (even after reading the CPAN documentation for that module) how this is supposed to work. Thanks for any suggestions! In reply to Update on controlling long-running processes via CGI by dannyhmg
|
|