aboutsummaryrefslogtreecommitdiff
path: root/run.sh
blob: 2dc725f2dc9d6a24ee72c06e2662905d7c5889d7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#!/bin/bash

i=1
a=1
while [ true ]
do
	sleep 30
	echo $i
	signal-cli -u $GSB_USER receive | tee msg$i.log | python3 geldschieberbot.py
	i=`expr $i + 1`

	if [[ $i == 5000 ]]
	then
		tar cfz msgs$a.tar.gz msg*.log && rm msg*.log && i=1 && a=`expr $a + 1` 
	fi
done