forked from encrypt/toot
repeat after file finished
This commit is contained in:
parent
56d5d1caaf
commit
c508258722
1 changed files with 14 additions and 9 deletions
|
@ -1,13 +1,18 @@
|
||||||
|
|
||||||
SLEEP_INTERVAL=3h
|
SLEEP_INTERVAL=3h
|
||||||
|
|
||||||
#
|
|
||||||
# Last line should be empty, so we dont need an additional read here
|
while :
|
||||||
# after the while loop
|
|
||||||
#
|
|
||||||
while read line
|
|
||||||
do
|
do
|
||||||
echo "[INFO] Now tooting: $line"
|
#
|
||||||
./toot.sh $line >/dev/null 2>&1 &
|
# Last line should be empty, so we dont need an additional read here
|
||||||
sleep ${SLEEP_INTERVAL}
|
# after the while loop
|
||||||
done < megafono.txt
|
#
|
||||||
|
while read line
|
||||||
|
do
|
||||||
|
echo "[INFO] Now tooting: $line"
|
||||||
|
./toot.sh $line >/dev/null 2>&1 &
|
||||||
|
sleep ${SLEEP_INTERVAL}
|
||||||
|
done < megafono.txt
|
||||||
|
|
||||||
|
done
|
Loading…
Reference in a new issue