Cron – UNIX cron job doesn’t run on all of it’s schedules, acts like it’s running previous version

cronsolarisunix

We have a solaris box that is running a script via cron. It is scheduled for 00 5,19 * * *. The problem is, the script runs just fine at 19 (7pm) but is not running at 5am. There are no errors, nothing in the logs, it's just like it isn't running at all. crontab -l shows the correct schedule that it should be running.

The thing is, adding the 5am runtime is a recent change. Prior to that, this new line was added and another line in crontab was commented out. And I swear at that point it was still running the commented out line, and not running this line at 7pm. Our admins added the 5am schedule, and now it appears like it's running the "previous" version of the crontab.

Any ideas on what's going on here? Is there any way that cron will run a cached version or a previous version or something, even if crontab -l shows something different?

Best Answer

How did they make the changes to the crontab? Did they directly (and incorrectly) edit the file in /var/spool/cron/crontabs? Or did they run (correctly) crontab -e?

Related Topic