Created
September 26, 2023 21:03
-
-
Save adililhan/0dad36e1bb82566e6c7dc5bcfc5ad542 to your computer and use it in GitHub Desktop.
This file contains 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
#!/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