We don't bite newbies here... much | |
PerlMonks |
Re^2: CGI - run script without waitingby zentara (Archbishop) |
on Apr 15, 2014 at 15:24 UTC ( [id://1082354]=note: print w/replies, xml ) | Need Help?? |
I'm not sure if I didn't understood everything in this article of Watching long processes through CGI, but I don't care about refreshing and watching things like that. I just need to click a button -> start cgi script which starts system commands WITHOUT waiting for the end -> saying browser "hey I finished" (while the system commands are still running. What you probably want to do, is fork off the desired script, with SIG(CHLD) ignored, so it won't wait. Then, you close STDOUT and other filehandles in your cgi script, and the web server should close it off. or this simpler example:
I'm not really a human, but I play one on earth. Old Perl Programmer Haiku ................... flash japh
In Section
Seekers of Perl Wisdom
|
|