I am unable to configure a cron job to run by placing it in /etc/cron.hourly folder.
SHELL=/bin/bash
PATH=/sbin:/bin:/usr/sbin:/usr/bin
MAILTO=root
HOME=/
# run-parts
01 * * * * root run-parts /etc/cron.hourly
02 4 * * * root run-parts /etc/cron.daily
22 4 * * 0 root run-parts /etc/cron.weekly
42 4 1 * * root run-parts /etc/cron.monthly
The file under cron.hourly is :
lrwxrwxrwx 1 root root 40 2010-07-26 14:52 check -> /usr/local/xxxx/check-interface.bash
Permissions on the file :
-rwxr-xr-x 1 root root 1.6K 2010-09-13 11:22 /usr/local/xxxx/check-interface.bash
There seems to be no errors reported in the var/log/cron logfile. No mention of the script is done. :(
chmod +x /usr/local/xxxx
/etc/cron.*
. Ischeck
the actual name of the symlink? Does the script run correctly if you run it manually? Are you sure it's not running and just having no visible effect?