in reply to Win32: Multiple processes with the same name

Win32::Process::List looks like it may help you build an array / hash of suspects for you. Win32::Process::Info also has a ListPids() method. If these modules do return your list of pids, you should be able to use Win32::Process::Perf to find the faulty pid, and Win32::Process to kill it.

Of course, if these process are perl scripts, you could use $$ to capture the pids as they are created.

  • Comment on Re: Win32: Multiple processes with the same name