From owner-freebsd-questions@FreeBSD.ORG Thu Jan 14 00:47:53 2010 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 05B30106566C for ; Thu, 14 Jan 2010 00:47:53 +0000 (UTC) (envelope-from fwd@gothschlampen.com) Received: from vs.gothschlampen.com (vs.gothschlampen.com [85.93.11.85]) by mx1.freebsd.org (Postfix) with ESMTP id C100D8FC08 for ; Thu, 14 Jan 2010 00:47:52 +0000 (UTC) Received: by vs.gothschlampen.com (Postfix, from userid 667) id C8F561D33E8; Thu, 14 Jan 2010 01:47:40 +0100 (CET) Date: Thu, 14 Jan 2010 01:47:40 +0100 From: "Thomas K." To: Kaya Saman Message-ID: <20100114004740.GA32382@gothschlampen.com> References: <4B4E6337.5000806@netscape.net> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <4B4E6337.5000806@netscape.net> User-Agent: Mutt/1.5.13 (2006-08-11) Cc: freebsd-questions@freebsd.org Subject: Re: Crontab not working?? X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 14 Jan 2010 00:47:53 -0000 On Thu, Jan 14, 2010 at 02:20:07AM +0200, Kaya Saman wrote: Hi, > @reboot root /usr/local/sbin/logwatch.pl > 02 4 * * * root /usr/local/sbin/logwatch.pl this format/syntax is only valid for the system contab. > The interesting thing here is that it shows them as being run: > > rd1# cat /var/log/cron | grep logwatch > Jan 12 04:02:00 rd1 /usr/sbin/cron[5882]: (root) CMD > (root^I/usr/local/sbin/logwatch.pl) > Jan 13 04:02:00 rd1 /usr/sbin/cron[8898]: (root) CMD > (root^I/usr/local/sbin/logwatch.pl) As you can see, the command is not valid. You should at least get an error. If the scripts do not set PATH themselvs, try setting it in the crontab, as the default is rather minimal. Regards Thomas