From owner-freebsd-questions@FreeBSD.ORG Thu Jan 14 00:30:31 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 827BD106566B for ; Thu, 14 Jan 2010 00:30:31 +0000 (UTC) (envelope-from cswiger@mac.com) Received: from asmtpout029.mac.com (asmtpout029.mac.com [17.148.16.104]) by mx1.freebsd.org (Postfix) with ESMTP id 708FF8FC2A for ; Thu, 14 Jan 2010 00:30:31 +0000 (UTC) MIME-version: 1.0 Content-transfer-encoding: 7BIT Content-type: text/plain; charset=us-ascii Received: from cswiger1.apple.com ([17.227.140.124]) by asmtp029.mac.com (Sun Java(tm) System Messaging Server 6.3-8.01 (built Dec 16 2008; 32bit)) with ESMTPSA id <0KW700CVHO2FME20@asmtp029.mac.com> for freebsd-questions@freebsd.org; Wed, 13 Jan 2010 16:30:16 -0800 (PST) From: Chuck Swiger In-reply-to: <4B4E6337.5000806@netscape.net> Date: Wed, 13 Jan 2010 16:30:15 -0800 Message-id: <6BD85777-C14C-4F0F-83AD-9DEF52D22E85@mac.com> References: <4B4E6337.5000806@netscape.net> To: Kaya Saman X-Mailer: Apple Mail (2.1077) 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:30:31 -0000 Hi-- On Jan 13, 2010, at 4:20 PM, Kaya Saman wrote: > It didn't work so I tried to cut down areas which I suspected might not work and ended up with the syntax below for root: > > crontab -l shows: > > @reboot root /usr/local/sbin/logwatch.pl > 02 4 * * * root /usr/local/sbin/logwatch.pl You're using the syntax for a system-wide crontab, ie, /etc/crontab. Per-user crontabs do not have the middle field listing the user to run as; re-run crontab -e and try this instead: @reboot /usr/local/sbin/logwatch.pl 02 4 * * * /usr/local/sbin/logwatch.pl Regards, -- -Chuck