469,898 Members | 1,755 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,898 developers. It's quick & easy.

monitor windows processes

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
Jul 19 '05 #1
1 4628
"RB" <wi@rjsolutions.org> wrote in message news:<bs***********@msunews.cl.msu.edu>...
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
Jul 19 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

7 posts views Thread by dcrespo | last post: by
3 posts views Thread by hikums | last post: by
10 posts views Thread by Mark | last post: by
3 posts views Thread by Chris Dunaway | last post: by
4 posts views Thread by onedbguru | last post: by
13 posts views Thread by =?Utf-8?B?R2Vvcmdl?= | last post: by
1 post views Thread by Waqarahmed | last post: by
reply views Thread by Salome Sato | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.