Created
September 26, 2023 20:48
-
-
Save adililhan/be7a8204c208a90756da31784ccf9168 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" | |
} | |
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