From owner-freebsd-questions@FreeBSD.ORG Thu Jan 14 00:20:36 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 3AC18106566C for ; Thu, 14 Jan 2010 00:20:36 +0000 (UTC) (envelope-from samankaya@netscape.net) Received: from imr-db02.mx.aol.com (imr-db02.mx.aol.com [205.188.91.96]) by mx1.freebsd.org (Postfix) with ESMTP id EFD588FC15 for ; Thu, 14 Jan 2010 00:20:35 +0000 (UTC) Received: from imo-da01.mx.aol.com (imo-da01.mx.aol.com [205.188.169.199]) by imr-db02.mx.aol.com (8.14.1/8.14.1) with ESMTP id o0E0KF0I003101 for ; Wed, 13 Jan 2010 19:20:15 -0500 Received: from samankaya@netscape.net by imo-da01.mx.aol.com (mail_out_v42.5.) id n.bea.58557db2 (37108) for ; Wed, 13 Jan 2010 19:20:12 -0500 (EST) Received: from [172.16.1.52] (mail.reformkurumsal.com [212.156.209.87]) by cia-db08.mx.aol.com (v127.7) with ESMTP id MAILCIADB086-90f44b4e6338188; Wed, 13 Jan 2010 19:20:09 -0500 Message-ID: <4B4E6337.5000806@netscape.net> Date: Thu, 14 Jan 2010 02:20:07 +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: freebsd-questions@freebsd.org 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 Subject: 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:20:36 -0000 Hi, I installed logwatch from ports only it didn't install a crontab for me like Linux or Solaris does so I ended up attempting to copy my Linux crontab into FreeBSD. 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 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) but only nothing is being emailed to me....? If I run the pearl file locally as in: /usr/local/sbin/logwatch.pl it works fine and email is sent. I know I am missing something but for the life of me can't work out what! Can anyone be of assistance? Many thanks, Kaya