Skip to content

Instantly share code, notes, and snippets.

@tj
Created December 20, 2011 20:51
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tj/1503213 to your computer and use it in GitHub Desktop.
Save tj/1503213 to your computer and use it in GitHub Desktop.
#!/usr/bin/env bash
close() {
echo ... seeya!
exit
}
trap close SIGINT
trap close SIGTERM
while true; do
echo ... $@
$@
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment