rozštěpen z encrypt/toot
27 řádky
Žádný EOL
376 B
Bash
Spustitelný soubor
27 řádky
Žádný EOL
376 B
Bash
Spustitelný soubor
#!/bin/bash
|
|
|
|
#
|
|
# CONFIGURATION
|
|
#
|
|
|
|
# Interval between two consecutive posts
|
|
SLEEP_INTERVAL=3h
|
|
|
|
# File containing the toots to post
|
|
DATA_FILE=megafono.txt
|
|
|
|
#
|
|
# CONFIGURATION END
|
|
#
|
|
|
|
while :
|
|
do
|
|
# Last line should be empty, so we dont need an additional read here
|
|
# after the while loop
|
|
while read line
|
|
do
|
|
./toot.sh $line
|
|
sleep ${SLEEP_INTERVAL}
|
|
done < ${DATA_FILE}
|
|
|
|
done |