Don't ask to ask, just ask | |
PerlMonks |
Re: Update on controlling long-running processes via CGIby Anonymous Monk |
on Mar 18, 2017 at 01:16 UTC ( [id://1185100]=note: print w/replies, xml ) | Need Help?? |
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
In Section
Seekers of Perl Wisdom
|
|