Issue:crond is running, can even restart it and /var/log/cron shows it starting. The /etc/crontab file is correct as compared to another machine. I set the crontab file to enter a datestamp into a file under /tmp every minute. Thing is, the crontab file is not being read or cron is not working correctly. I have deleted the crontab entries and retried entering them in again, still not working. No errors either in /var/log/messages.
Anyone know what I can do to get cron working as it should again?
---------- Post updated at 02:01 PM ---------- Previous update was at 01:33 PM ----------
correction, when crond is restarted it does read /etc/crontab, yet it never runs anything in that file.
crontab -e, but if i cat the /var/spool/cron/root i see the same thing in there. I actually noticed a couple of entries missing either the full directory or a preaviling "/". here is the output of both now:
---------- Post updated at 04:27 PM ---------- Previous update was at 03:26 PM ----------
[/COLOR]I have verified if I run the hourly/daily/weekly cron jobs that they work. I also removed everything from the crontab and just put in this line:
The format of /etc/crontab and the files in /etc/cron.d are different from user crontabs. You appear to be using user crontab syntax which is incorrect.
Ok, then how should they look? I have verified on another system that is identical that the files all look the same, have same size, have same perms....
---------- Post updated at 05:38 PM ---------- Previous update was at 05:37 PM ----------
The system crontab file looks almost identical to a user's crontab file, with a couple of subtle differences.
The system crontab file is not stored in /var/spool/cron, and is not managed with the crontab command. Instead, the file is edited directly with a text editor.
Entries contain an additional sixth field, which occurs after the five time specification fields but before the command. This field specifies the user the following command should run as (which is usually root).
The default /etc/crontab file comes with only four entries, each of which runs the command run-parts on one of the /etc/cron.hourly, /etc/cron.daily, /etc/cron.weekly, or /etc/cron.monthly directories. Sysadmins are free to add their own entries to the /etc/crontab file.