Using Perl, how do I check if a particular Windows process is running or not? Basically, I want to start a process using ‘exec’, but I should do this only if it is not already running.
So how to know if a process with particular name is running or not? Is there any Perl module which provides this feature?
Take a look at the following example that uses the Win32::OLE module. It lets you search for running processes whose names match a given regular expression.