Skip to content

Instantly share code, notes, and snippets.

@ellisonleao
Created December 4, 2013 02:10
Show Gist options
  • Save ellisonleao/7781131 to your computer and use it in GitHub Desktop.
Save ellisonleao/7781131 to your computer and use it in GitHub Desktop.
Kill zombies process
#!/bin/zsh
kill -HUP `ps -A -ostat,ppid | grep -e '^[Zz]' | awk '{print $2}'`
echo "Zombies killed"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment