Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Perl > monitor windows processes

Reply
Thread Tools

monitor windows processes

 
 
RB
Guest
Posts: n/a
 
      12-23-2003
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


 
Reply With Quote
 
 
 
 
Daniel Berger
Guest
Posts: n/a
 
      12-24-2003
"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:rocess::Info
or Proc:rocessTable and check for the name of the process.

Regards,

Dan
 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Controlling processes and what to "feed" other processes Marc Heiler Ruby 1 05-24-2009 05:37 PM
.NET App to monitor Processes Stephen ASP .Net 2 03-27-2006 11:51 PM
whatsup gold perl script to monitor unix processes Danny Jensen Perl 0 06-28-2004 06:28 PM
monitor windows processes RB Perl Misc 2 12-24-2003 05:33 PM
How do I: Main thread spawn child threads, which child processes...control those child processes? Jeff Rodriguez C Programming 23 12-09-2003 11:06 PM



Advertisments