Skip to content

Instantly share code, notes, and snippets.

@adililhan
Created September 26, 2023 21:03
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 adililhan/0dad36e1bb82566e6c7dc5bcfc5ad542 to your computer and use it in GitHub Desktop.
Save adililhan/0dad36e1bb82566e6c7dc5bcfc5ad542 to your computer and use it in GitHub Desktop.
#!/bin/bash
trap control_t SIGTERM
function control_t() {
echo "SIGTERM detected"
exit 0
}
for i in `seq 1 86400`; do
sleep 1
date
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment