Created
December 20, 2018 12:12
-
-
Save mutsune/2dd551e18e20817e05117cf5b753535d to your computer and use it in GitHub Desktop.
This file contains hidden or 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
trap ' | |
pids="$(jobs -p)" | |
if [[ "${pids}" != "" ]]; then | |
echo "terminated procs are below:" | |
ps auxww ${pids} | |
kill ${pids} > /dev/null | |
fi' EXIT |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment