You will need to read(chunksize) the stdout + stderr of your
background process and stream it down to the client in the same loop
for this you'll need to declare your url as streamed using this:
cherrypy.config.update({tg.url('url'): {'streamResponse': True}})
and then in the loop use a yield statement...
Sorry I don't have enough time for a real answer with code.
Florent.
Look at the standard library subprocess module. Capture the output of
the process you are running and attach it to a template variable.
The problem with this approach is that the page load will hang until
your background process has finished.
If this is not feasible, you could do this:
1) Run the background process in it's own thread an let it write it's
output to a file pipe or Queue.Queue.
2) Provide a controller method that reads from the pipe and returns all
data read within a certain timeout wrapped in a JSON response.
3) Build a JavaScript function in your page that regularly polls the
method from step 2) via AJAX and displays the returned data.
Chris
mix our two answers and you begin to get an idea :)