Kill process by name in python
Posted
by user353064
on Stack Overflow
See other posts from Stack Overflow
or by user353064
Published on 2010-05-31T00:37:31Z
Indexed on
2010/05/31
0:42 UTC
Read the original article
Hit count: 646
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!
© Stack Overflow or respective owner