add update.sh

This commit is contained in:
Tomáš Mládek 2018-03-28 18:55:28 +02:00 committed by Tomááas Mladek
parent 11765a2f2f
commit 7bece4954f
2 changed files with 8 additions and 0 deletions

View file

@ -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

7
update.sh Executable file
View file

@ -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