monitor windows processes

R

RB

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
 
D

Daniel Berger

RB said:
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
 

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

Forum statistics

Threads
473,769
Messages
2,569,577
Members
45,052
Latest member
LucyCarper

Latest Threads

Top