CGI and long running job

Mardy mardy at users.sourceforge.net
Sat Dec 3 12:39:51 EST 2005


Le die Fri, 02 Dec 2005 20:35:52 -0800, merry.sailor ha scribite:
> For step 3 I use either os.system or os.popen(2). The problem is that
> the web server does not send the information of step 2 back to the
> browser, unless step 3 is completed. The browser simply waits for a
> response, without displaying anything. How can I just read the params,
> display the info I want, start the simulation and then terminate either
> the script or at least the connection to the browser without having to
> wait for the simulation to finish?

Sounds weird. What if you connect to the webserver via telnet? Do you get
any output?
you could try to call sys.stdout.flush() in the CGI, but I never had the
need to do that.
Maybe it's just a browser's problem?


-- 
Saluti,
    Mardy
http://interlingua.altervista.org




More information about the Python-list mailing list