Beefy Boxes and Bandwidth Generously Provided by pair Networks
XP is just a number
 
PerlMonks  

Re: Check if a process is running on Windows

by paulbort (Hermit)
on Jun 14, 2004 at 18:51 UTC ( #366662=note: print w/replies, xml ) Need Help??


in reply to Check if a process is running on Windows

While there are several valid methods above, they are all making this way too hard.

This is one of the things that Windows gets right. Assuming you are on Windows 2000, Windows XP, or Windows 2003, you can solve this in less than a minute with zero code!

First, disable whatever method is currently launching the main script.

Next, set that same script up again to be launched by the built-in Windows Task Scheduler. Tell Task Scheduler that you want your script run every five minutes, UNLESS it is already running from last time. Voila!

Hope you get this before spending too much time with another solution...

--
Spring: Forces, Coiled Again!
  • Comment on Re: Check if a process is running on Windows

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://366662]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others chilling in the Monastery: (5)
As of 2019-07-22 07:52 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    If you were the first to set foot on the Moon, what would be your epigram?






    Results (11 votes). Check out past polls.

    Notices?