469,610 Members | 1,870 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,610 developers. It's quick & easy.

exit after process exit

Hello,

I would like to run a python process and wait until the process exit.
How can I do it?

For example I would like to run a.exe. and wait until a.exe exit.

Sincerely Yours,
Pujo

Jul 19 '05 #1
2 1372
os.popen ?

Regards,

Philippe

aj****@gmail.com wrote:
Hello,

I would like to run a python process and wait until the process exit.
How can I do it?

For example I would like to run a.exe. and wait until a.exe exit.

Sincerely Yours,
Pujo


Jul 19 '05 #2
You might want
os.spawnv(os.P_WAIT, "a.exe", ["a.exe"])

os.system("a.exe")

Jeff

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.1 (GNU/Linux)

iD8DBQFCnMTlJd01MZaTXX0RAokRAJ4ukDR3ftgn3EUyu23A7C gDV+5BggCfbX/s
Ok2AK8ailqNPa06/opJwJbg=
=asE9
-----END PGP SIGNATURE-----

Jul 19 '05 #3

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

3 posts views Thread by marciocamurati | last post: by
1 post views Thread by =?Utf-8?B?VGFvZ2U=?= | last post: by
reply views Thread by devrayhaan | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.