spawnl and waitpid

Thinker thinker at branda.to
Tue Feb 27 05:28:50 EST 2007


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

naima.mans at gmail.com wrote:
> hello,
>
> I run a python cgi script under Apache...
>
> and while the script is running i want to display a "please wait"
> message until the script finish.
>
> I have tried to do this but the "please wait" message appears at
> the script end (which is useless at this time! )
>
You should flush sys.stdout after you print messages, or
the message will keep in buffer untill buffer is full or process
terminated.


- --
Thinker Li - thinker at branda.to thinker.li at gmail.com
http://heaven.branda.to/~thinker/GinGin_CGI.py
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (FreeBSD)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFF5Afi1LDUVnWfY8gRAgaoAJ9fccAjo00QupE7SRFqgbmOUGZMugCgjvdH
cFoxm+jiZiIpKOfd+fHCt/M=
=9COv
-----END PGP SIGNATURE-----




More information about the Python-list mailing list