Merge remote-tracking branch 'origin/master'

This commit is contained in:
Tomáš Mládek 2018-04-25 14:30:16 +02:00 committed by Tomáš Mládek
commit 1cc88e6ef4
3 changed files with 10 additions and 1 deletions

3
.gitignore vendored
View file

@ -1,2 +1,3 @@
out out
downloaded.lst downloaded.lst
delojza.log

View file

@ -1,4 +1,5 @@
#!/bin/bash #!/bin/bash
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )" DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
cd ${DIR} cd ${DIR}
./update.sh &
python3 delojza.py 2>&1 |tee -a out/delojza.log 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