in reply to Kill a process by name

Check out How do i kill a process on a remote win32 machine.

I would highly recommend checking out Win32::Process Use that to create your process and you'll have the pid to kill it.

If you're on linux get the pid when you fork.

That's how I do it. Others might have better ideas.