exit after process exit

Discussion in 'Python' started by ajikoe@gmail.com, May 31, 2005.

  1. Guest

    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
    , May 31, 2005
    #1
    1. Advertising

  2. os.popen ?

    Regards,

    Philippe



    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
    Philippe C. Martin, May 31, 2005
    #2
    1. Advertising

  3. Jeff Epler Guest

    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-----
    Jeff Epler, May 31, 2005
    #3
    1. Advertising

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

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. =?Utf-8?B?U2FuZHk=?=

    Code to Exit Web App and Exit Internet Explorer

    =?Utf-8?B?U2FuZHk=?=, Aug 3, 2005, in forum: ASP .Net
    Replies:
    7
    Views:
    7,874
    =?Utf-8?B?U2FuZHk=?=
    Aug 5, 2005
  2. Joe Smith
    Replies:
    4
    Views:
    65,788
    sandeep1976
    Nov 8, 2006
  3. Teresa
    Replies:
    2
    Views:
    638
    Rob Thorpe
    Apr 6, 2004
  4. QQ
    Replies:
    5
    Views:
    505
    Jonathan Adams
    May 10, 2005
  5. Victor Hooi
    Replies:
    1
    Views:
    129
    Nobody
    Feb 10, 2013
Loading...

Share This Page