I created a Python command that uploads a zip file to an FTP server
I want to run it every 5 minutes using cron jobs.
So I opened crontab using crontab -e
and I added the following line
The cron job does not work but when I run smart-cv.py archive
from the terminal it works and I can see that the zip file is uploaded to the FTP server.
I have already tried restarting the cron server with service cron restart
but it does not work
*/5 * * * * smart-cv.py archive >> /tmp/user-crontab.log 2>&1
, then open another console and runtail -f /tmp/user-crontab.log
to see the output live while it runs. You can change the path of the log file to your home folder.