monitor windows processes

Discussion in 'Perl' started by RB, Dec 23, 2003.

  1. RB

    RB Guest

    Does anyone know how to monitor the existance of a process running in
    windows task manager.

    Basically I want to start another process only if the previous has finished
    and the script runs in windows.

    Thanks
     
    RB, Dec 23, 2003
    #1
    1. Advertising

  2. "RB" <> wrote in message news:<bsa908$2o0g$>...
    > Does anyone know how to monitor the existance of a process running in
    > windows task manager.
    >
    > Basically I want to start another process only if the previous has finished
    > and the script runs in windows.
    >
    > Thanks


    You have a couple of choices. The first is to record the pid of that
    process somewhere and test whether or not it's running using "kill 0"
    (same as Unix).

    Your other option is to resort to something like Win32::process::Info
    or Proc::processTable and check for the name of the process.

    Regards,

    Dan
     
    Daniel Berger, Dec 24, 2003
    #2
    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. Danny Jensen
    Replies:
    0
    Views:
    915
    Danny Jensen
    Jun 28, 2004
  2. Stephen

    .NET App to monitor Processes

    Stephen, Mar 27, 2006, in forum: ASP .Net
    Replies:
    2
    Views:
    363
    Stephen
    Mar 28, 2006
  3. ScottZ
    Replies:
    2
    Views:
    412
    Jorgen Grahn
    Nov 2, 2008
  4. RB

    monitor windows processes

    RB, Dec 23, 2003, in forum: Perl Misc
    Replies:
    2
    Views:
    93
    Daniel Berger
    Dec 24, 2003
  5. Replies:
    2
    Views:
    136
    Anno Siegel
    Jan 24, 2005
Loading...

Share This Page