If you are having an issue with the NOT working cron, you can do the following to check it.
Check if crond is working
# service crond status crond (pid 1386) is running...
You can also check cron log file and see if cron script is executed
tail -n 20 /var/log/cron
If your cron script is executed in the log, then you can check the following
Login as root on the server, and then execute cron script as a user
#su USERNAME -s /bin/bash
Check that you will execute script as a user
Now you are ready to run your cron script manually, just execute your cron script, example:
You will see if you have any issue and you can do a quick fix.
Most common issues
- if file is executed via shell and not via http:// then the most common issue is that file needs to have execute permissions
You can try to fix that by using this command: chmod +x FILENAME