Created
September 15, 2016 16:23
-
-
Save slok/0c62a0165bac4f00e1e686594fd2f774 to your computer and use it in GitHub Desktop.
onliner trap
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 'echo captured;sleep 30;exit' SIGINT SIGTERM && while true; do sleep 1; done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment