Kill process by name in python
- by user353064
Hello,
I'm trying to kill a process (specifically iChat) using python. I know how to use the command:
ps -A | grep iChat
Then:
kill -9 PID
However, I'm not exactly sure how to translate these commands over to python. My guess is that it's not very difficult but I just don't know. Any help would be greatly appreciated!