summaryrefslogtreecommitdiff
path: root/Scripts/whileUdDown.sh
diff options
context:
space:
mode:
authorJulian <julianteule@gmail.com>2017-01-16 19:57:02 +0100
committerJulian <julianteule@gmail.com>2017-01-16 19:57:02 +0100
commitd6a34dc03e54f6d940d9c4812da6f0ff7b9bb116 (patch)
tree7a6bfe249ffc7035141a6311b931486d26e09979 /Scripts/whileUdDown.sh
parentd2dc145a765763281efb837d76d5e2fd221f6d39 (diff)
parented3f8a5ba0dbdd9c0d3363568db4e47546513161 (diff)
LOLSAFnaodvfnojdvnsoj
Diffstat (limited to 'Scripts/whileUdDown.sh')
-rw-r--r--Scripts/whileUdDown.sh12
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