From owner-freebsd-questions@FreeBSD.ORG Thu Jan 14 00:34:49 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 213931065670 for ; Thu, 14 Jan 2010 00:34:49 +0000 (UTC) (envelope-from samankaya@netscape.net) Received: from imr-db01.mx.aol.com (imr-db01.mx.aol.com [205.188.91.95]) by mx1.freebsd.org (Postfix) with ESMTP id D48798FC0C for ; Thu, 14 Jan 2010 00:34:48 +0000 (UTC) Received: from imo-ma01.mx.aol.com (imo-ma01.mx.aol.com [64.12.78.136]) by imr-db01.mx.aol.com (8.14.1/8.14.1) with ESMTP id o0E0YQEA005164; Wed, 13 Jan 2010 19:34:26 -0500 Received: from samankaya@netscape.net by imo-ma01.mx.aol.com (mail_out_v42.5.) id q.c96.54ea8b41 (37588); Wed, 13 Jan 2010 19:34:22 -0500 (EST) Received: from [172.16.1.52] (mail.reformkurumsal.com [212.156.209.87]) by cia-mb06.mx.aol.com (v127.7) with ESMTP id MAILCIAMB061-92d44b4e668910e; Wed, 13 Jan 2010 19:34:19 -0500 Message-ID: <4B4E6689.9090206@netscape.net> Date: Thu, 14 Jan 2010 02:34:17 +0200 From: Kaya Saman User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.8.1.22) Gecko/20090605 SeaMonkey/1.1.17 (Ubuntu-1.1.17+nobinonly-0ubuntu0.9.04.1) MIME-Version: 1.0 To: Chuck Swiger References: <4B4E6337.5000806@netscape.net> <6BD85777-C14C-4F0F-83AD-9DEF52D22E85@mac.com> In-Reply-To: <6BD85777-C14C-4F0F-83AD-9DEF52D22E85@mac.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-AOL-IP: 212.156.209.87 X-Mailer: Unknown (No Version) X-Spam-Flag: NO X-AOL-SENDER: samankaya@netscape.net 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:34:49 -0000 Thanks, I inputted the data as you suggested so now I will wait until the time specified to see if it ran or not! Regards, Kaya Chuck Swiger wrote: > 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, >