Why is (ana)cron not running any of my jobs and giving no error output?
Solution 1:
Your cron runs should be logged in /var/log/syslog
. You should be getting email if there are errors.
Usually when a script runs from the command line and won't from cron
it's because of a difference in environment. It's a good idea to set the PATH
variable explicitly and/or use full paths to all files and executables. I see that you've done that in your crontab
entry, but you should check the script itself.
In addition to PATH
there may be other environment dependencies that your script has. Without see it, I can't guess what they might be.
Solution 2:
Remember that cron scripts don't run with your full user environment (PATH, etc.), so it's quite possible that cron is running your script, but that the script isn't working.