Add files via upload
Bi-Rabittoh andronacomarco@gmail.com
Thu, 22 Feb 2018 22:02:30 +0100
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!"