From owner-freebsd-questions Wed Dec 4 14: 5:55 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 B675A37B401 for ; Wed, 4 Dec 2002 14:05:54 -0800 (PST) Received: from dan.emsphone.com (dan.emsphone.com [199.67.51.101]) by mx1.FreeBSD.org (Postfix) with ESMTP id 1C4B243E4A for ; Wed, 4 Dec 2002 14:05:54 -0800 (PST) (envelope-from dan@dan.emsphone.com) Received: (from dan@localhost) by dan.emsphone.com (8.12.6/8.12.6) id gB4M5r9x087734; Wed, 4 Dec 2002 16:05:53 -0600 (CST) (envelope-from dan) Date: Wed, 4 Dec 2002 16:05:53 -0600 From: Dan Nelson To: Thomas von Hassel Cc: freebsd-questions@FreeBSD.ORG Subject: Re: run command on logfile before it's rotated Message-ID: <20021204220553.GA28987@dan.emsphone.com> 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> X-OS: FreeBSD 5.0-CURRENT X-message-flag: Outlook Error User-Agent: Mutt/1.5.1i 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 In the last episode (Dec 04), Thomas von Hassel said: > 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 ? Run it via cron at 11:59? newsyslog can notify a process (via a signal) after it has rotated the log, but not before. -- Dan Nelson dnelson@allantgroup.com To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message