Re: cron mystery

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]



From: Timothy Murphy <gayleard@xxxxxxxxxx>
> 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


      
_______________________________________________
CentOS mailing list
CentOS@xxxxxxxxxx
http://lists.centos.org/mailman/listinfo/centos

[Index of Archives]     [CentOS]     [CentOS Announce]     [CentOS Development]     [CentOS ARM Devel]     [CentOS Docs]     [CentOS Virtualization]     [Carrier Grade Linux]     [Linux Media]     [Asterisk]     [DCCP]     [Netdev]     [Xorg]     [Linux USB]
  Powered by Linux