Create a gist now

Instantly share code, notes, and snippets.

@tj /forever.sh
Created Dec 20, 2011

#!/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