Skip to content

Instantly share code, notes, and snippets.

@dcosson
Created August 11, 2012 06:18
Show Gist options
  • Save dcosson/3321717 to your computer and use it in GitHub Desktop.
Save dcosson/3321717 to your computer and use it in GitHub Desktop.
kill zombie procs
# a quick shell command to kill all procs matching a grep pattern
for i in `ps aux | grep 'manage.py runserver' | grep -v grep | awk '{ printf "%s ", $2 }'` ; do sudo kill $i ; done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment