running system command in cgi problem

Felix Seeger seeger at sitewaerts.de
Mon Feb 25 04:32:51 EST 2002


<veröffentlicht & per Mail versendet>

Carsten Gaebler wrote:

> You could fork a child process which executes the command and let the
> parent process wait for it to finish and print keepalive messages in
> the meantime. This could look like the following. Note the '-u'
> argument to python; it ensures that output is not buffered but sent to
> the browser immediately.
> 
> ...
>
> Hope this helps.
> cg.

Thanks for the tip.
I will use is later, at the moment all output is going to a file. The 
programm is called with &.
So it works now.


thanks again
I've looked also for a good fork example and now I have one ;) 

have fun
Felix



More information about the Python-list mailing list