Last active
June 8, 2023 10:43
-
-
Save Inkimar/c68f2e62fd20b288f473950573857fd4 to your computer and use it in GitHub Desktop.
bash script, HTTP-STATUS is 200 or NOT
This file contains hidden or 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
a bash-script for checking if a website is up (HTTP STATUS == 200) , if not, then send an email. | |
- token is needed for gmail, | |
- - see here (1) https://support.google.com/mail/answer/185833?hl=en or (2) https://web.archive.org/web/20230521225549/https://support.google.com/mail/answer/185833?hl=en (that is internet-archive is (1) is not available) | |
1. a bash-script ends with 'sh' -> ```bash-script-name.sh``` | |
2. you need to make the script executable by running `chmod +x bash-script-name.sh` | |
date = 2023-06-08 |
Author
Inkimar
commented
Jun 8, 2023
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment