Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl Monk, Perl Meditation
 
PerlMonks  

Re: Check if a process is running on Windows

by paulbort (Hermit)
on Jun 14, 2004 at 18:51 UTC ( [id://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!

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others perusing the Monastery: (6)
As of 2024-03-29 01:19 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found