Created
April 29, 2012 22:03
-
-
Save pditommaso/2553480 to your computer and use it in GitHub Desktop.
Trap Ctrl+Z key press
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 | |
trap "echo You\'re trying to Control-z me" SIGTSTP | |
while :; do | |
: | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment