Unix Commands/Scripts for '#Curl' - 1 Commands/Scripts found
Sample 1. Shell Script to continuously monitor the state(up/down) of application and send email if its down
while true ; do
curl websiteaddress.com | grep -q "Down for Maintenance"
if [ $? -eq 0 ] ; then
echo "Website is Down" | mail -s "Website is down for maintenance" email@address.com
; fi
sleep 20
done