In my Ubuntu VM, I have condigured my cronjob to run a python script every minute just to test
#cat /var/spool/cron/crontabs/* MAILTO = "email@example.com" * * * * * python /home/forge/web-app/database/backup_mysql.py
It been 5 mins now, I don't see any email send to me. I don't see any backup file is being generated.
I have a feeling that this cronjob is never got run.
How do I check it ? How do I fix it ?
Do I need to restart some kind of service ?
pgrep cron I got number printing out.
People suggested to remove the spaces between my
=, I did that as suggested
Restart my cron service
sudo service cron restart
Yet, same result. It doesn't seem to trigger still.
On the other hand, I have this settings in my Mac OS
MAILTO = "firstname.lastname@example.org" 0 * * * * python /Applications/MAMP/htdocs/code/web-app/database/backup_mysql.py
It ran perfecly fine ..