From owner-freebsd-questions@FreeBSD.ORG Thu Jan 14 01:13:21 2010 Return-Path: Delivered-To: questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id BFEB9106568F for ; Thu, 14 Jan 2010 01:13:21 +0000 (UTC) (envelope-from samankaya@netscape.net) Received: from imr-db03.mx.aol.com (imr-db03.mx.aol.com [205.188.91.97]) by mx1.freebsd.org (Postfix) with ESMTP id 7C7508FC08 for ; Thu, 14 Jan 2010 01:13:21 +0000 (UTC) Received: from imo-da04.mx.aol.com (imo-da04.mx.aol.com [205.188.169.202]) by imr-db03.mx.aol.com (8.14.1/8.14.1) with ESMTP id o0E12UV5020941; Wed, 13 Jan 2010 20:02:30 -0500 Received: from samankaya@netscape.net by imo-da04.mx.aol.com (mail_out_v42.5.) id o.ca8.4eb6760e (37521); Wed, 13 Jan 2010 20:02:27 -0500 (EST) Received: from [172.16.1.52] (mail.reformkurumsal.com [212.156.209.87]) by cia-ma08.mx.aol.com (v127.7) with ESMTP id MAILCIAMA086-92914b4e6d1f2; Wed, 13 Jan 2010 20:02:25 -0500 Message-ID: <4B4E6D1F.2030607@netscape.net> Date: Thu, 14 Jan 2010 03:02:23 +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: Glen Barber References: <4B4E329D.4090806@lazlarlyricon.com> <4B4E3778.1080609@lazlarlyricon.com> <20100114005341.GA67999@orion.hsd1.pa.comcast.net> In-Reply-To: <20100114005341.GA67999@orion.hsd1.pa.comcast.net> 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: questions@freebsd.org Subject: Re: Crontab not working logwatch.pl [FreeBSD 8 stable] 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 01:13:21 -0000 Glen Barber wrote: > Rolf Nielsen wrote: > >> On 2010-01-13 22:04, Jeronimo Calvo wrote: >> >>> did a crontab -r, a a new crontab -e, using: >>> >>> * * * * * $HOME/.profile ; /bin/bash /var/log/auto_auth.sh >>> * * * * * $HOME/.profile ; /usr/bin/perl /local/sbin/logwatch.pl >>> >>> > > In addition to the other suggestions, I'd imagine an absolute path path to > /local/sbin/logwatch.pl is a problem as well. Unless /local/sbin exists, > of course. > > Regards, > > Many thanks for all the responses!! I copied the data into /etc/crontab using the root syntax as described before and I got sent an email straight away after restarting cron!! I am not sure why I decided to use a local crontab rather then system-wide one but I think I got confused somewhere along the lines with something?? At least it works :-) Regards, Kaya