summaryrefslogtreecommitdiffstats
path: root/extra/push-examples/bash-curl/index.sh
diff options
context:
space:
mode:
Diffstat (limited to 'extra/push-examples/bash-curl/index.sh')
-rw-r--r--extra/push-examples/bash-curl/index.sh10
1 files changed, 10 insertions, 0 deletions
diff --git a/extra/push-examples/bash-curl/index.sh b/extra/push-examples/bash-curl/index.sh
new file mode 100644
index 0000000..3031255
--- /dev/null
+++ b/extra/push-examples/bash-curl/index.sh
@@ -0,0 +1,10 @@
+#!/bin/bash
+# Filename: index.sh
+PUSH_URL="https://example.com/api/push/key?status=up&msg=OK&ping="
+INTERVAL=60
+
+while true; do
+ curl -s -o /dev/null $PUSH_URL
+ echo "Pushed!"
+ sleep $INTERVAL
+done