From owner-freebsd-questions@FreeBSD.ORG Mon Sep 20 18:33:12 2004 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id DA1E116A4CE for ; Mon, 20 Sep 2004 18:33:12 +0000 (GMT) Received: from internet.potentialtech.com (h-66-167-251-6.phlapafg.covad.net [66.167.251.6]) by mx1.FreeBSD.org (Postfix) with ESMTP id A2CA643D45 for ; Mon, 20 Sep 2004 18:33:12 +0000 (GMT) (envelope-from wmoran@potentialtech.com) Received: from working.potentialtech.com (pa-plum-cmts1e-68-68-113-64.pittpa.adelphia.net [68.68.113.64]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by internet.potentialtech.com (Postfix) with ESMTP id 0F3DD69A87; Mon, 20 Sep 2004 14:33:11 -0400 (EDT) Date: Mon, 20 Sep 2004 14:33:11 -0400 From: Bill Moran To: Bob Ababurko 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> Organization: Potential Technologies X-Mailer: Sylpheed version 0.9.12 (GTK+ 1.2.10; i386-portbld-freebsd4.9) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit cc: freebsd-questions@freebsd.org Subject: Re: cron not running my command? X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 20 Sep 2004 18:33:13 -0000 Bob Ababurko 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 > 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