S
S
strongmonkey2015-12-23 11:51:29
Perl
strongmonkey, 2015-12-23 11:51:29

How to find out the list of already running Perl programs in windows?

There is a Perl script that polls the web service. Runs on schedule.
It may be that the next time you run the script, the previous run has not yet been completed.
How can I check if a script with a certain name is running?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
V
Vladimir Martyanov, 2015-12-23
@vilgeforce

Searching for perl.exe processes (or whatever it is called exe), getting command line parameters for this process, searching for the desired script name in it. Something like this. Or modifying the script so that it creates a lock file.

E
Eugene, 2015-12-23
@yellowmew

There are a million options.
the simplest is to use the task scheduler functionality, which you schedule to run your script.
In the standard windows scheduler: in the parameters you can set "if the task is already running: do not start a new instance"
Also, the behavior when starting the script can be controlled by checking for an already running process with this command line
Or modify the script to create a lock file.
PS my answer for the most part duplicates the answer of the user Vladimir Martyanov , therefore, I will give him a like :D

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question