cquest/tootbot

tootbot.py does not work in a cronjob.

Closed this issue · 1 comments

I wrote an update-toots.sh script:

cd /home/tux/tootbot
/usr/local/bin/python3 ./tootbot.py <account> <login> <password> <instance>

However, while running ./update-toots.sh manually works just fine, running it from cron always returns 0 tweets. Why?

Solution: twint is most likely installed into the user’s home folder (in my case, ~/.local), so cron could not find it. Fixed by loading the .profile first.