This may help: Watching long processes through CGI.
In reply to Re: Print the output from the pipe while waiting by kyle in thread Print the output from the pipe while waiting by Anonymous Monk