[CentOS] cron mystery

John Doe jdmls at yahoo.com
Mon Mar 1 12:11:56 UTC 2010


From: Timothy Murphy <gayleard at eircom.net>
> The scripts in /etc/cron.d/ all run fine,
> but those in /etc/cron.hourly, etc, seem to be ignored.

Tried:
  printf "#"'!'"/bin/bash\ntouch /tmp/cron.test\n" > /etc/cron.hourly/cront.test; chmod 755 /etc/cron.hourly/cront.test

Next hour:
  $ ll /tmp/cron.test
  -rw-r--r-- 1 root root 0 Mar  1 13:01 /tmp/cron.test

Did you run your script has the cron user...?
Do you have the following in your /etc/crontab?
  01 * * * * root run-parts /etc/cron.hourly

JD


      


More information about the CentOS mailing list