diff --git a/.gitignore b/.gitignore index 5dfff02..aeb02b8 100644 --- a/.gitignore +++ b/.gitignore @@ -1,2 +1,3 @@ out -downloaded.lst \ No newline at end of file +downloaded.lst +delojza.log 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