Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 19 Jan 1998 13:09:36 +1030
From:      Mike Smith <mike@smith.net.au>
To:        "Duane H. Hesser" <dhh@androcles.com>
Cc:        Joao Carlos Mendes Luis <jonny@coppe.ufrj.br>, freebsd-hackers@FreeBSD.ORG, danny@panda.hilink.com.au, tom@sdf.com (Tom)
Subject:   Re: 2nd call for comments: New option for newsyslog 
Message-ID:  <199801190239.NAA00650@word.smith.net.au>
In-Reply-To: Your message of "Sun, 18 Jan 1998 08:15:48 -0800." <XFMail.980118082245.dhh@androcles.com> 

next in thread | previous in thread | raw e-mail | index | archive | help
> 
> 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
@<time>[:<dayname>[,<dayname>...]]

This covers just about every possible case.

-- 
\\  Sometimes you're ahead,       \\  Mike Smith
\\  sometimes you're behind.      \\  mike@smith.net.au
\\  The race is long, and in the  \\  msmith@freebsd.org
\\  end it's only with yourself.  \\ 





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