On Sun, Apr 18, 2004 at 09:03:11AM -0400, fbsd_user wrote: > When my firewall log is rotated by newsyslog.conf, I want to run an > custom script. > > Is there a way to auto launch script when newsyslog.conf log rotate > event happens?
Not in any simple way. However you can get newsyslog(1) to send a signal to the process of your choice when it cycles the log file. That process can do whatever you want on receipt of the signal. This is not beginner-level shell or perl programming, but it's not hugely difficult either. Cheers, Matthew -- Dr Matthew J Seaman MA, D.Phil. 26 The Paddocks Savill Way PGP: http://www.infracaninophile.co.uk/pgpkey Marlow Tel: +44 1628 476614 Bucks., SL7 1TH UK
pgp00000.pgp
Description: PGP signature