[clug] rotating log files
sam at couter.id.au
Fri Mar 23 08:11:28 GMT 2007
Robert Edwards <bob at cs.anu.edu.au> wrote:
> This could also be done with time/date stamping, or with a simple
> increasing serial number. I still can't see the sense in renaming all
> the previous log files.
One reason I can think of is that it means the most recent log file is
always named <blah>.0, the next most recent <blah>.1, etc. No need to
sort by the timestamp in the file name or mtime to find the most recent
log. I guess it could make for lazier script programming.
I'm not sure that it's worth much, but there it is.
Sam Couter | mailto:sam at couter.id.au
| jabber:sam at teknohaus.dyndns.org
OpenPGP fingerprint: A46B 9BB5 3148 7BEA 1F05 5BD5 8530 03AE DE89 C75C
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Size: 189 bytes
Desc: Digital signature
Url : http://lists.samba.org/archive/linux/attachments/20070323/1574d91d/attachment.bin
More information about the linux