Created
September 25, 2014 14:31
-
-
Save nmccready/823b98dfd0c851a32ebb 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
#!/bin/bash | |
set -e | |
set -x | |
ignorePid=$BASHPID | |
echo my pid: $ignorePid | |
pids=`findProcs $1 | grep -v "$ignorePid"` | |
set +x | |
for i in "${pids[@]}" | |
do | |
echo killing $i | |
kill -9 $i | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment