Closed dertuxmalwieder closed 1 year ago
I wrote an update-toots.sh script:
update-toots.sh
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?
./update-toots.sh
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.
I wrote an
update-toots.sh
script:However, while running
./update-toots.sh
manually works just fine, running it from cron always returns 0 tweets. Why?