in reply to Update on controlling long-running processes via CGI

Here is how I did it...I created another (unique) HTML file with meta tags which will cause the page to refresh itself every 15 seconds and with no cache saved. Once that placeholder HTML file is created, redirect the user to that placeholder HTML file and kick off a grandchild worker to update the HTML file dynamically. Once the grandchild is done updating the HTML file then we clear out the HTML one final time with just the final HTML results you want shown.

CGI - Parent worker: /srv/www/cgi-bin/parent.pl

CGI - Child worker:

CGI - Grandchild worker: /srv/www/cgi-bin/grandchild.pl

  • Comment on Re: Update on controlling long-running processes via CGI