Skip to content

Instantly share code, notes, and snippets.

@oraccha
Created March 1, 2012 20:57
Show Gist options
  • Save oraccha/1953183 to your computer and use it in GitHub Desktop.
Save oraccha/1953183 to your computer and use it in GitHub Desktop.
pseudo pkill shell script
qkill() {
if [ `which pkill` ]; then
pkill -f $1
else
kill `ps -ef | grep $1 | grep -v grep | awk '{print $1}'`
fi
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment