jcadima
1/10/2020 - 5:02 PM

Check if website is up Linux

https://crontab-generator.org/
https://serverfault.com/questions/282215/script-to-automatically-test-if-a-web-site-is-available


Test simple script
if curl -s --head  --request GET https://swcorp.com | grep "200 OK" > /dev/null; then 
   echo "swcorp.com is UP"
else
   echo "swcorp.com is DOWN"
fi