Skip to content

Instantly share code, notes, and snippets.

@zipizap
Created October 11, 2013 14:17
Show Gist options
  • Save zipizap/6935381 to your computer and use it in GitHub Desktop.
Save zipizap/6935381 to your computer and use it in GitHub Desktop.
zipizap@lnxp:/tmp$ ./a.sh
Handler for CTRL-C is defined - press CTRL-C or wait 5 seconds to continue
^C------- handler_CtrlC -------
>> Control-C was pressed. Exiting
zipizap@lnxp:/tmp$
zipizap@lnxp:/tmp$
zipizap@lnxp:/tmp$
zipizap@lnxp:/tmp$
zipizap@lnxp:/tmp$
zipizap@lnxp:/tmp$ ./a.sh
Handler for CTRL-C is defined - press CTRL-C or wait 5 seconds to continue
Handler for EXIT is defined - going to 'exit 0' now
------- handler_Exit -------
>> Removing /tmp/tmp.5fBSdjEAXY and exiting
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment