add update.sh
This commit is contained in:
parent
11765a2f2f
commit
7bece4954f
2 changed files with 8 additions and 0 deletions
1
robot.sh
1
robot.sh
|
@ -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
7
update.sh
Executable 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
|
Loading…
Reference in a new issue