5
0

megafono_bot.sh 376 B

123456789101112131415161718192021222324252627
  1. #!/bin/bash
  2. #
  3. # CONFIGURATION
  4. #
  5. # Interval between two consecutive posts
  6. SLEEP_INTERVAL=3h
  7. # File containing the toots to post
  8. DATA_FILE=megafono.txt
  9. #
  10. # CONFIGURATION END
  11. #
  12. while :
  13. do
  14. # Last line should be empty, so we dont need an additional read here
  15. # after the while loop
  16. while read line
  17. do
  18. ./toot.sh $line
  19. sleep ${SLEEP_INTERVAL}
  20. done < ${DATA_FILE}
  21. done