Skip to content

Instantly share code, notes, and snippets.

@leetrout
Created September 6, 2011 19:18
Show Gist options
  • Save leetrout/1198681 to your computer and use it in GitHub Desktop.
Save leetrout/1198681 to your computer and use it in GitHub Desktop.
Poor Man's "killall"
#!/bin/bash
PIDS=`ps aux | grep $1 | grep -v grep | tr -s ' ' | cut -d' ' -f2`
for PID in $PIDS ; do kill -9 $PID ; done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment