Further to expand on the first answer above: I recently asked a question that elicited a link to
http://www.stonehenge.com/merlyn/LinuxMag/col39.html, the title of which is "Watching long processes through CGI" that expands on
jonadab's answer above.