I have a python script that updates a .txt file.
When I run the file manually in the terminal it works, it also updates the file. However, this seems to only be a problem when it is run with cron.
The response in the log file is:
No such file or directory: 'uploads/test.txt'
The cron command for this is:
* * * * * /usr/bin/python3 /root/script.py >> /root/log.log 2>&1
I'm literally stumped. Any solutions?