Advertisement
freakrho

Kill process by name

Oct 26th, 2011
178
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.07 KB | None | 0 0
  1. #!/bin/bash
  2. proid=`ps -e | grep $1 | cut -d ' ' -f 2`
  3. kill $proid
  4.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement