blob: 5876dede874fa9d1f4ac892d434c8081bcb5ce13 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
#!/bin/bash
# Source config.sh if it is available
[[ -f config.sh ]] && source config.sh
# Create dir for all your received messages
mkdir msgs
i=1
a=1
while [ true ]
do
sleep 30
echo $i
signal-cli -u $GSB_USER receive | tee msgs/msg$i.log | python3 geldschieberbot.py
i=`expr $i + 1`
if [[ $i == 5000 ]]
then
tar cfz msgs/msgs$a.tar.gz msgs/msg*.log && rm msgs/msg*.log && i=1 && a=`expr $a + 1`
fi
done
|