diff options
Diffstat (limited to 'Scripts/whileUdDown.sh')
-rw-r--r-- | Scripts/whileUdDown.sh | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/Scripts/whileUdDown.sh b/Scripts/whileUdDown.sh new file mode 100644 index 0000000..2ca8f07 --- /dev/null +++ b/Scripts/whileUdDown.sh @@ -0,0 +1,12 @@ +C=1 +RED=$(curl -Ls -o /dev/null -w %{url_effective} http://uddataplus.dk) +echo "$C $RED" +COM="https://www.uddata.dk/uddataplus-nede/" +while [ "$RED" == "$COM" ] +do + C=$((C+1)) + RED=$(curl -Ls -o /dev/null -w %{url_effective} http://uddataplus.dk) + echo "$C $RED" + sleep 30 +done +notify-send 'Yo!' 'Uddata virker måske igen' --icon=dialog-information |