Posts: 662 | Thanked: 238 times | Joined on Jul 2007
#1
Yo!

Little question that I couldn't find an answer to. Is it possible to kill a process by name using "kill" ?

Or, can you get the PID from "ps /usr/bin/processname" and return that to a Python program so that it can run "kill PID"?

Thanks a lot
 
Posts: 465 | Thanked: 149 times | Joined on Oct 2007
#2
Originally Posted by Aisu View Post
Yo!
Little question that I couldn't find an answer to. Is it possible to kill a process by name using "kill" ?
killall should do the trick.
 

The Following User Says Thank You to dblank For This Useful Post:
Posts: 662 | Thanked: 238 times | Joined on Jul 2007
#3
*smacks head*

Thank you! Perfect! Greatly appreciated, dblank!
 
Reply

Thread Tools

 
Forum Jump


All times are GMT. The time now is 20:36.