Skip to content

Instantly share code, notes, and snippets.

@pditommaso
Created April 29, 2012 22:03
Show Gist options
  • Save pditommaso/2553480 to your computer and use it in GitHub Desktop.
Save pditommaso/2553480 to your computer and use it in GitHub Desktop.
Trap Ctrl+Z key press
#!/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