Date: Fri, 29 Sep 2000 15:32:13 +0400 From: "Artem Koutchine" <matrix@ipform.ru> To: "Peter Salvage" <wizard@sybaweb.co.za>, <freebsd-questions@freebsd.org> Subject: Re: Cron question - emailing and cycling Exim maillog Message-ID: <030f01c02a08$ef6ee0e0$0c00a8c0@ipform.ru> References: <037101c02a06$f9621920$0200a8c0@ait.co.za>
next in thread | previous in thread | raw e-mail | index | archive | help
Hmm... well as far as i understand: create a simple sh script, which emails you the log and then calls exicyclog something like: #!/bin/sh cat /var/log/exim.main | mail eximadmin@somewhere.dom exicyclog consult man on mail for proper params. ----- Original Message ----- From: "Peter Salvage" <wizard@sybaweb.co.za> To: <freebsd-questions@freebsd.org> Sent: Friday, September 29, 2000 3:18 PM Subject: Cron question - emailing and cycling Exim maillog > 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 > To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?030f01c02a08$ef6ee0e0$0c00a8c0>