Running External Commands + Seeing when they are Finished

Discussion in 'Python' started by Tommy B, May 27, 2006.

  1. Tommy  B

    Tommy B Guest

    I'm currently working on a script that I will run when I leave my
    computer on at night. It runs external commands like Ad-Aware, Spybot,
    AVG, Avast, and the like. The problem is, I want to know how to make it
    so that one command starts only after the last one finishes. When I run
    them, they end up running all at once! Can someone please tell me if
    this is possible? Judging from what I've seen in Python's versitility,
    I bet it can...
    Tommy B, May 27, 2006
    #1
    1. Advertising

  2. Tommy  B

    Guest

    from os import *

    for cmd in ['adaware', 'spybot']:
    system(cmd)
    , May 27, 2006
    #2
    1. Advertising

  3. Tommy  B

    Tommy B Guest

    The problem is with that (which is what I'm doing already) is that one
    app is in a window and one app is on the command line. Thus, you end up
    with both apps running at the same time. Are there any modules that
    have functions for checking when windows are opened or closed?
    Tommy B, May 27, 2006
    #3
  4. Tommy  B

    Miki Guest

    Miki, May 28, 2006
    #4
  5. Tommy  B

    Tommy B Guest

    It works! Gasp!

    Thanks!
    Tommy B, May 30, 2006
    #5
    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. caleb
    Replies:
    0
    Views:
    2,883
    caleb
    Jan 3, 2006
  2. Asfand Yar Qazi
    Replies:
    4
    Views:
    396
    Asfand Yar Qazi
    Nov 12, 2004
  3. Martin M.
    Replies:
    4
    Views:
    341
    Simon Brunning
    Dec 15, 2005
  4. Sven Fischer
    Replies:
    2
    Views:
    551
    Roedy Green
    Mar 9, 2012
  5. Sol Linderstein
    Replies:
    2
    Views:
    162
    A. Sinan Unur
    Jun 1, 2004
Loading...

Share This Page