Created
March 13, 2014 06:49
-
-
Save drewdeponte/9522995 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
echo "woot" | |
trap "echo 'got SIGHUP'; exit 255" SIGHUP | |
trap "echo 'got SIGABRT'; exit 255" SIGABRT | |
trap "echo 'got SIGSEGV'; exit 255" SIGSEGV | |
trap "echo 'got SIGURG'; exit 255" SIGURG | |
trap "echo 'got SIGTTIN'; exit 255" SIGTTIN | |
trap "echo 'got SIGVTALRM'; exit 255" SIGVTALRM | |
trap "echo 'got SIGUSR2'; exit 255" SIGUSR2 | |
trap "echo 'got SIGINT'; exit 255" SIGINT | |
trap "echo 'got SIGSYS'; exit 255" SIGSYS | |
trap "echo 'got SIGSTOP'; exit 255" SIGSTOP | |
trap "echo 'got SIGTTOU'; exit 255" SIGTTOU | |
trap "echo 'got SIGPROF'; exit 255" SIGPROF | |
trap "echo 'got SIGQUIT'; exit 255" SIGQUIT | |
trap "echo 'got SIGFPE'; exit 255" SIGFPE | |
trap "echo 'got SIGPIPE'; exit 255" SIGPIPE | |
trap "echo 'got SIGTSTP'; exit 255" SIGTSTP | |
trap "echo 'got SIGIO'; exit 255" SIGIO | |
trap "echo 'got SIGWINCH'; exit 255" SIGWINCH | |
trap "echo 'got SIGILL'; exit 255" SIGILL | |
trap "echo 'got SIGKILL'; exit 255" SIGKILL | |
trap "echo 'got SIGALRM'; exit 255" SIGALRM | |
trap "echo 'got SIGCONT'; exit 255" SIGCONT | |
trap "echo 'got SIGXCPU'; exit 255" SIGXCPU | |
trap "echo 'got SIGTRAP'; exit 255" SIGTRAP | |
trap "echo 'got SIGBUS'; exit 255" SIGBUS | |
trap "echo 'got SIGTERM'; exit 255" SIGTERM | |
trap "echo 'got SIGCHLD'; exit 255" SIGCHLD | |
trap "echo 'got SIGXFSZ'; exit 255" SIGXFSZ | |
trap "echo 'got SIGUSR1'; exit 255" SIGUSR1 | |
while : # This is the same as "while true". | |
do | |
sleep 60 # This script is not really doing anything. | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment