spawnl and waitpid

Thinker thinker at branda.to
Tue Feb 27 12:54:02 EST 2007


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

naima.mans at gmail.com wrote:
> i have tried as you said (cf bellow) and same result... is there
> any link which explain how a server Web read script and send the
> answer ?
> -------------------------------------------------------------------------
> pid = os.spawnl(os.P_NOWAIT,"c:\\python25\
> \python.exe","python","Main.py")

print 'please wait...'

> ret = os.waitpid(pid,0)

You have missed my idea.
Since os.waitpid will be blocked, you should print your message before
calling os.waitpid().


- --
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

iD8DBQFF5HA61LDUVnWfY8gRAu8sAJ4n1dogsw7RzTxH8Ke3xnNX6gXnRQCeMOKf
/dsGHttcJc/KGpx414I7rxw=
=E3o7
-----END PGP SIGNATURE-----




More information about the Python-list mailing list