Why are cron.hourly files not running?
Larry Alkoff
labradley at mindspring.com
Mon Jul 16 19:23:38 UTC 2007
Joel Goguen wrote:
I am still unable to run a cron script in /etc/cron.hourly.
This simple script won't run:
root at kinda cron.hourly # ll settime.cron
-rwxr-xr-x 1 root root 107 2007-07-16 14:00 settime.cron
The permissions of 755 should allow root to write and world to execute.
root at kinda cron.hourly # cat settime.cron
#!/bin/sh
/bin/echo "fixing to run hourly settime.ipcop" >>/var/log/syslog
exit
The only thing this script can do at this point is echo some words to
/var/log/syslog, but it does not.
I can see that the cron.hourly line in /etc/crontab does not invoke
anacron. Could there be some completely different mechanism at work for
cron.hourly files?
What are these entries in /etc/syslog trying to tell me?
Could the printcap entries have something to do with simply writing an
echo statement to a file?
Jul 16 14:20:01 kinda smbd[12172]: [2007/07/16 14:20:01, 0]
printing/pcap.c:pcap_cache_reload(159)
Jul 16 14:20:01 kinda smbd[12172]: Unable to open printcap file
/etc/printcap for read!
Jul 16 14:20:01 kinda smbd[12172]: [2007/07/16 14:20:01, 0]
printing/pcap.c:pcap_cache_reload(159)
Jul 16 14:20:01 kinda smbd[12172]: Unable to open printcap file
/etc/printcap for read!
Jul 16 14:20:01 kinda /USR/SBIN/CRON[7528]: (root) CMD ( cd / &&
run-parts --report /etc/cron.hourly)
Larry
--
Larry Alkoff N2LA - Austin TX
Using Thunderbird on Linux
More information about the ubuntu-users
mailing list