Created
March 5, 2024 19:57
-
-
Save acdcjunior/9c2c92540423482ea79f12b7c8ec9857 to your computer and use it in GitHub Desktop.
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
killer() { | |
echo "Will now kill '$1'..." | |
for p in $(ps aux | grep "$1" | grep -v grep | awk '{print $2}'); do | |
echo "killing $p" | |
kill -9 $p || true | |
done | |
echo "Done killing '$1'." | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment