in reply to Print the output from the pipe while waiting

You might want to consider using AJAX - it's good for this type of thing. I wrote a demo to illustrate something similar a while back that might be useful to you.
  • Comment on Re: Print the output from the pipe while waiting