Created
April 20, 2014 08:19
-
-
Save fernviridian/11108457 to your computer and use it in GitHub Desktop.
because google chrome helpers suck and love to eat cores
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#! /bin/bash | |
pid=`ps aux | grep "Google Chrome Helper" | awk '{ if ($3>=80) print $2}'` | |
if [ "$pid" != "" ]; then | |
kill -9 $pid | |
else | |
echo "No Google Chrome helper using more than 80% CPU" | |
fi |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment