From owner-freebsd-questions Wed Dec 4 14: 2:46 2002 Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 001D437B401 for ; Wed, 4 Dec 2002 14:02:45 -0800 (PST) Received: from sub21-156.member.dsl-only.net (sub21-156.member.dsl-only.net [63.105.21.156]) by mx1.FreeBSD.org (Postfix) with ESMTP id 8A52943EA9 for ; Wed, 4 Dec 2002 14:02:45 -0800 (PST) (envelope-from nkinkade@sub21-156.member.dsl-only.net) Received: from nkinkade by sub21-156.member.dsl-only.net with local (Exim 4.10) id 18JhbM-0002ld-00 for freebsd-questions@FreeBSD.ORG; Wed, 04 Dec 2002 14:02:40 -0800 Date: Wed, 4 Dec 2002 14:02:40 -0800 From: Nathan Kinkade 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> Reply-To: nkinkade@dsl-only.net Mail-Followup-To: freebsd-questions@FreeBSD.ORG References: <93B9E916-07D2-11D7-B076-0003936CEB72@garbage.dk> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <93B9E916-07D2-11D7-B076-0003936CEB72@garbage.dk> User-Agent: Mutt/1.4i Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG 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