From 7bece4954f9c58b4619fad04bdd9c0aece35aaa6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tom=C3=A1=C5=A1=20Ml=C3=A1dek?= Date: Wed, 28 Mar 2018 18:55:28 +0200 Subject: [PATCH] add update.sh --- robot.sh | 1 + update.sh | 7 +++++++ 2 files changed, 8 insertions(+) create mode 100755 update.sh diff --git a/robot.sh b/robot.sh index fa8c6ae..082cd60 100755 --- a/robot.sh +++ b/robot.sh @@ -1,4 +1,5 @@ #!/bin/bash DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )" cd ${DIR} +./update.sh & python3 delojza.py 2>&1 |tee -a out/delojza.log diff --git a/update.sh b/update.sh new file mode 100755 index 0000000..efe7ba1 --- /dev/null +++ b/update.sh @@ -0,0 +1,7 @@ +#!/bin/bash +while :;do + NUM=$( grep 'INFO - Downloading' delojza.log|wc -l) + echo $NUM + curl -s 'kunsaxan.sdbs.cz/counter.php?key=delojza7953713b19ef2ea055156c8dc175bf80&count='$NUM + sleep 300; +done