Skip to content

Instantly share code, notes, and snippets.

@n1mh
Created May 29, 2019 15:13
Show Gist options
  • Save n1mh/93c45aef13bc5b38f91cb9701f33ba29 to your computer and use it in GitHub Desktop.
Save n1mh/93c45aef13bc5b38f91cb9701f33ba29 to your computer and use it in GitHub Desktop.
#!/bin/bash
URL="https://mynewwebsite.com"
LOG="./`basename $0|cut -d'.' -f1`.log"
SEC="5"
while [ '1' == '1' ] ; do
MD5=` wget -q --no-check-certificate -O - $URL | md5sum`
NOW=`date +%Y%m%dT%H%M%S`
echo "$NOW:$MD5" | tee --append $LOG
sleep $SEC
done
exit 0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment