Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 4 Dec 2002 14:02:40 -0800
From:      Nathan Kinkade <nkinkade@dsl-only.net>
To:        freebsd-questions@FreeBSD.ORG
Subject:   Re: run command on logfile before it's rotated
Message-ID:  <20021204220240.GY467@sub21-156.member.dsl-only.net>
In-Reply-To: <93B9E916-07D2-11D7-B076-0003936CEB72@garbage.dk>
References:  <93B9E916-07D2-11D7-B076-0003936CEB72@garbage.dk>

next in thread | previous in thread | raw e-mail | index | archive | help
On Wed, Dec 04, 2002 at 10:51:43PM +0100, Thomas von Hassel wrote:
> I've got my system set up to rotate the maillog every day at midnight. 
> What do i do if i want to run a command on the logfile just before it's 
> rotated ?
> 
> /thomas
> --
> Thomas von Hassel
> DarX @ irc
> darxmac @ AIM/iChat
> Powered by inkwell...!

How about just setting a cron job to run some reasonable period prior 
to newsyslog being run?

Nathan

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?20021204220240.GY467>