Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 4 Dec 2002 16:05:53 -0600
From:      Dan Nelson <dnelson@allantgroup.com>
To:        Thomas von Hassel <t@garbage.dk>
Cc:        freebsd-questions@FreeBSD.ORG
Subject:   Re: run command on logfile before it's rotated
Message-ID:  <20021204220553.GA28987@dan.emsphone.com>
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
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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20021204220553.GA28987>