Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 20 Sep 2004 13:44:21 -0400
From:      Bob Ababurko <ababurko@adelphia.net>
To:        freebsd-questions@freebsd.org
Subject:   cron not running my command?
Message-ID:  <5.2.1.1.0.20040920133747.01d5a458@mail.dc2.adelphia.net>

next in thread | raw e-mail | index | archive | help
Hey there-

   I am running FreeBSD 5.2.1  and I have a cron job running 
webalizer.  The cron job seems to be running based on the log, but the data 
is not being updated in the directory.  I do believe that I can say that 
the webalizer is configured correctly because if I run the command that is 
listed in cron by hand, the output is sent to the proper place.  Here are 
some l0og entries and the crontab itself:

europa# crontab -l
0 * * * * /etc/cron.daily/ntpdate.cron > /dev/null
*/5 * * * * /usr/sbin/webstats

europa# tail /var/log/cron
Sep 20 13:25:00 europa /usr/sbin/cron[51173]: (root) CMD (/usr/libexec/atrun)
Sep 20 13:26:02 europa crontab[51199]: (root) LIST (root)
Sep 20 13:30:00 europa /usr/sbin/cron[51274]: (root) CMD (/usr/libexec/atrun)
Sep 20 13:30:00 europa /usr/sbin/cron[51273]: (root) CMD (/usr/sbin/webstats)
Sep 20 13:33:00 europa /usr/sbin/cron[51332]: (operator) CMD 
(/usr/libexec/save-entropy)
Sep 20 13:34:35 europa crontab[51387]: (root) LIST (root)
Sep 20 13:35:00 europa /usr/sbin/cron[51394]: (root) CMD (/usr/libexec/atrun)
Sep 20 13:35:00 europa /usr/sbin/cron[51393]: (root) CMD (/usr/sbin/webstats)
Sep 20 13:40:00 europa /usr/sbin/cron[51468]: (root) CMD (/usr/libexec/atrun)
Sep 20 13:40:00 europa /usr/sbin/cron[51467]: (root) CMD (/usr/sbin/webstats)

I am confused on where I should look now.  Any suggestions would be 
appreciated.

/bob



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?5.2.1.1.0.20040920133747.01d5a458>