exit after process exit

A

ajikoe

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
 
J

Jeff Epler

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)

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

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,755
Messages
2,569,536
Members
45,007
Latest member
obedient dusk

Latest Threads

Top