From owner-freebsd-hackers Sun Jan 18 18:47:44 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id SAA13327 for hackers-outgoing; Sun, 18 Jan 1998 18:47:44 -0800 (PST) (envelope-from owner-freebsd-hackers@FreeBSD.ORG) Received: from word.smith.net.au (vh1.gsoft.com.au [203.38.152.122]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id SAA13317 for ; Sun, 18 Jan 1998 18:47:22 -0800 (PST) (envelope-from mike@word.smith.net.au) Received: from word (localhost [127.0.0.1]) by word.smith.net.au (8.8.8/8.8.5) with ESMTP id NAA00650; Mon, 19 Jan 1998 13:09:37 +1030 (CST) Message-Id: <199801190239.NAA00650@word.smith.net.au> X-Mailer: exmh version 2.0zeta 7/24/97 To: "Duane H. Hesser" cc: Joao Carlos Mendes Luis , freebsd-hackers@FreeBSD.ORG, danny@panda.hilink.com.au, tom@sdf.com (Tom) Subject: Re: 2nd call for comments: New option for newsyslog In-reply-to: Your message of "Sun, 18 Jan 1998 08:15:48 -0800." Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Date: Mon, 19 Jan 1998 13:09:36 +1030 From: Mike Smith Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk > > On 17-Jan-98 Joao Carlos Mendes Luis wrote: > [snip] > > > >Maybe it would be better to make a generic shell script to do file > >rotation. It would need some flags, like gzip compression needed, > >etc. It could be used by user scripts also. I have some that would > >be much simpler with such program available. > > > > The smail 3 distribution contains a shell script 'savelog' which does this > very nicely. FYI, Here are the comments from the script. newsyslog already does all of this; please read the manpage carefully. Danny; FWIW, I think you should be looking at extending the parsing of the interval field. In order to remain similar to cron, I'd suggest: @daily @weekly @monthly @yearly @