monitor windows processes

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • RB

    monitor windows processes

    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


  • Daniel Berger

    #2
    Re: monitor windows processes

    "RB" <wi@rjsolutions .org> wrote in message news:<bsa908$2o 0g$1@msunews.cl .msu.edu>...[color=blue]
    > 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[/color]

    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::ProcessTa ble and check for the name of the process.

    Regards,

    Dan

    Comment

    Working...