From owner-freebsd-questions Fri Sep 29 4:14:38 2000 Delivered-To: freebsd-questions@freebsd.org Received: from exodus.ait.co.za (exodus.ait.co.za [196.36.149.2]) by hub.freebsd.org (Postfix) with SMTP id C47DD37B423 for ; Fri, 29 Sep 2000 04:14:04 -0700 (PDT) Received: from pm3ctn [196.36.149.4] by exodus.ait.co.za (SMTPD32-4.06) id A80531F0150; Fri, 29 Sep 2000 13:13:57 +0200 Message-ID: <037101c02a06$f9621920$0200a8c0@ait.co.za> Reply-To: "Peter Salvage" From: "Peter Salvage" To: Subject: Cron question - emailing and cycling Exim maillog Date: Fri, 29 Sep 2000 13:18:20 +0200 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 5.50.4133.2400 X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4133.2400 Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Hi all I use Exim 3.16 as our MTA and would like to email the daily log to a remote mailbox, then cycle the logfile. There is an utility included in the distro of Exim, called exicyclog, which accomplishes the cycling... I've read the Exim utilities man page on exicyclog and have created a crontab file called "exim" in /var/cron/tabs which contains the following line: 1 0 * * * /usr/exim/bin/exicyclog This calls the log cycling script just after midnight every day which renames the log to mainlogx where x is an integer from 1 to a predetermined maximum, defaulting to 10. So far so good... But...(there's always a but), I would like to also be able to set up a cron job to email the logfile daily, just before running the exicyclog script. If the exicyclog is incrementing the log by 1 every time it's run, how would I instruct cron to mail the day's log??? TIA /wiZZ To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message