Date: Mon, 20 Sep 2004 14:33:11 -0400 From: Bill Moran <wmoran@potentialtech.com> To: Bob Ababurko <ababurko@adelphia.net> Cc: freebsd-questions@freebsd.org Subject: Re: cron not running my command? Message-ID: <20040920143311.684d6fcf.wmoran@potentialtech.com> In-Reply-To: <5.2.1.1.0.20040920133747.01d5a458@mail.dc2.adelphia.net> References: <5.2.1.1.0.20040920133747.01d5a458@mail.dc2.adelphia.net>
next in thread | previous in thread | raw e-mail | index | archive | help
Bob Ababurko <ababurko@adelphia.net> wrote: > 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 <snip> > I am confused on where I should look now. Any suggestions would be > appreciated. What is the contents of /usr/sbin/webstats? Does that script assume certain environment variables are set? Such as PATH? If so, you're better off without those assumptions. Possibly adapt /usr/sbin/webstats to output debugging info that you'll get in your email to help diagnose what's going wrong. If you're not getting email from cron when things go wrong, get your email system working properly before doing anything else. -- Bill Moran Potential Technologies http://www.potentialtech.com
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20040920143311.684d6fcf.wmoran>