all repos — checkwebpage @ 85445c3a16ab1c50d0c1811f865d677ede939b90

This is a GNU/Linux-compatible script I made to check for changes in a webpage.

Add files via upload
Bi-Rabittoh andronacomarco@gmail.com
Thu, 22 Feb 2018 22:02:30 +0100
commit

85445c3a16ab1c50d0c1811f865d677ede939b90

parent

fbbb8667d64625cd14b729f369a2d81b4c954b48

1 files changed, 28 insertions(+), 0 deletions(-)

jump to
A check.sh

@@ -0,0 +1,28 @@

+#!/bin/bash +#Before you run this script, make sure wget is installed and check https://github.com/mashlol/notify + +#ADD NOTIFY KEY HERE +notify -r insertkeyhere + +#EDIT LINK OF THE WEBPAGE TO CHECK +LINK=insertlinkhere + +#YOU CAN EDIT THE INTERVAL, I SET IT TO 300s = 5 minutes +INTERVAL=300 + + +wget -O temp $LINK --quiet +SIZE1=$(stat -c%s "temp") +rm temp +SIZE2=$SIZE1 +I=0 +while [ "$SIZE1" -eq "$SIZE2" ]; do + sleep $INTERVAL + echo $I + wget -O temp $LINK --quiet + SIZE2=$(stat -c%s "temp") + rm temp + let I=I+1 +done + +notify -t "Sono usciti i risultati di Analisi II!"