11 Jun
2004
11 Jun
'04
11:43 a.m.
From: "Florian Schulze" <florian.proff.schulze@gmx.net>
I want to write a function which invokes wget for a given URL. Now this can take quite some time, how can I provide some progress indicator? I don't think it's practical to stream data to the browser until the donwload is complete, so I need some way to check back on the progress every time a special page is requested. So the question is, how can I start a process in the background and check back on it ('s stdout) whenever requested? I'm using Zope 2.7.0 and Plone 2.0.3.
One possible solution: have your background process write out status messages to an object in your zope site. You can then use a simple url to the object to read the latest status. Jonathan