View and Kill Processes using the Windows Command Line
It’s pretty convenient to list and kill processes using ps and kill / pkill on *nix. Actually, you can do that on a Windows command line as well:
- tasklist: shows a list of all running processes
- taskkill: kills processes
Among other options, processes can be killed by their process ID (taskkill /PID 4711) and by the name of their executable (taskkill /IM firefox.exe).
So, if you have perl scripts running wild, just execute taskkill perl.exe to kill all of them down with a single command.
More lesser known Windows commands are described in this PDF.