From owner-freebsd-questions@FreeBSD.ORG Thu Nov 15 14:48:44 2007 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 BBC2416A419 for ; Thu, 15 Nov 2007 14:48:44 +0000 (UTC) (envelope-from keramida@ceid.upatras.gr) Received: from igloo.linux.gr (igloo.linux.gr [62.1.205.36]) by mx1.freebsd.org (Postfix) with ESMTP id 2056413C45A for ; Thu, 15 Nov 2007 14:48:43 +0000 (UTC) (envelope-from keramida@ceid.upatras.gr) Received: from kobe.laptop (vader.bytemobile-rio.ondsl.gr [83.235.57.37]) (authenticated bits=128) by igloo.linux.gr (8.14.1/8.14.1/Debian-9) with ESMTP id lAFEmHMO004387 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NOT); Thu, 15 Nov 2007 16:48:33 +0200 Received: from kobe.laptop (kobe.laptop [127.0.0.1]) by kobe.laptop (8.14.2/8.14.2) with ESMTP id lAFEm6BM002886; Thu, 15 Nov 2007 16:48:06 +0200 (EET) (envelope-from keramida@ceid.upatras.gr) Received: (from keramida@localhost) by kobe.laptop (8.14.2/8.14.2/Submit) id lAFEm59s002885; Thu, 15 Nov 2007 16:48:05 +0200 (EET) (envelope-from keramida@ceid.upatras.gr) Date: Thu, 15 Nov 2007 16:48:05 +0200 From: Giorgos Keramidas To: zbigniew szalbot Message-ID: <20071115144805.GA2814@kobe.laptop> References: <473C3FCB.6040302@szalbot.homedns.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <473C3FCB.6040302@szalbot.homedns.org> X-Hellug-MailScanner: Found to be clean X-Hellug-MailScanner-SpamCheck: not spam, SpamAssassin (not cached, score=-3.996, required 5, autolearn=not spam, ALL_TRUSTED -1.80, AWL 0.40, BAYES_00 -2.60) X-Hellug-MailScanner-From: keramida@ceid.upatras.gr X-Spam-Status: No Cc: freebsd-questions@freebsd.org Subject: Re: cron/send mail question 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, 15 Nov 2007 14:48:44 -0000 On 2007-11-15 13:47, zbigniew szalbot wrote: > Dear all, > What command (when using cron) should I invoke to automatically sent > /var/log/exim/rejectlog file to a specified email address? I just need > to analyze it and would best prefer to have it in my inbox in the > morning. There are several ways. (1) Add a new shell script to `/usr/local/etc/periodic/daily'. (2) Add the commands you want to run in `/etc/daily.local'. (3) Add a cronjob in `/etc/crontab' to run a custom script.