From owner-freebsd-questions@FreeBSD.ORG Thu Nov 15 13:22:16 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 308D616A418 for ; Thu, 15 Nov 2007 13:22:16 +0000 (UTC) (envelope-from iaccounts@ibctech.ca) Received: from pearl.ibctech.ca (pearl.ibctech.ca [208.70.104.210]) by mx1.freebsd.org (Postfix) with ESMTP id BD96E13C45A for ; Thu, 15 Nov 2007 13:22:15 +0000 (UTC) (envelope-from iaccounts@ibctech.ca) Received: (qmail 14391 invoked by uid 1002); 15 Nov 2007 13:22:14 -0000 Received: from iaccounts@ibctech.ca by pearl.ibctech.ca by uid 89 with qmail-scanner-1.22 (spamassassin: 2.64. Clear:RC:1(208.70.104.100):. Processed in 6.359559 secs); 15 Nov 2007 13:22:14 -0000 Received: from unknown (HELO ?192.168.30.110?) (steve@ibctech.ca@208.70.104.100) by pearl.ibctech.ca with (DHE-RSA-AES256-SHA encrypted) SMTP; 15 Nov 2007 13:22:07 -0000 Message-ID: <473C47FF.8040505@ibctech.ca> Date: Thu, 15 Nov 2007 08:22:07 -0500 From: Steve Bertrand User-Agent: Thunderbird 2.0.0.6 (Windows/20070728) MIME-Version: 1.0 To: zbigniew szalbot References: <473C3FCB.6040302@szalbot.homedns.org> In-Reply-To: <473C3FCB.6040302@szalbot.homedns.org> X-Enigmail-Version: 0.95.5 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit 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 13:22:16 -0000 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. The following should be on one line in crontab : 1 * * * * mail -s "File contents" my@email.addr < /home/steveb/file.name It will send your file to you inline in an email ad one minute after midnight every day. Steve