summaryrefslogtreecommitdiff
path: root/Scripts/whileUdDown.sh
diff options
context:
space:
mode:
authorjbjjbjjbj <julianteule@gmail.com>2017-01-13 20:02:01 +0100
committerjbjjbjjbj <julianteule@gmail.com>2017-01-13 20:02:01 +0100
commit70b65b88ac2119600b68e1a75e3053459d171764 (patch)
treec013223d81f30bdcdebe44ffe05bba30eb5cfb58 /Scripts/whileUdDown.sh
parent9394dfc3c3e6cf07e6bdf08aaa663bc1063265e6 (diff)
Added new scripts
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