Show progress of PYTHON CGI script
I have a PYTHON CGI script(Content-type: text/plain ) which takes about 10 minutes to execute. I want to see the execution status of my script on my browser . Like below: Part 1 of script executed... Part 2 of script executed.. Part 3 of script executed.. Execution Complete I am using print statements, but it is outputting all the print statements all-together only after the script has completed execution, and not one by one. Please help .. Try doing: import sys ... print "Part 1 of script executed..." sys.stdout.flush() # do this after the print This flushes the standard out buffer, which