Path: utzoo!utgpu!news-server.csri.toronto.edu!rpi!zaphod.mps.ohio-state.edu!wuarchive!udel!rochester!kodak!uupsi!jpradley!jpr From: jpr@jpradley.jpr.com (Jean-Pierre Radley) Newsgroups: comp.sources.wanted Subject: Re: logfile management program needed ... Keywords: logfile Message-ID: <1991May17.020723.27608@jpradley.jpr.com> Date: 17 May 91 02:07:23 GMT References: <100@morwyn.UUCP> Organization: /usr/lib/news/organisation Lines: 16 In article <100@morwyn.UUCP> forrie@morwyn.UUCP (Forrie Aldrich) writes: >I'm looking for a program that can be used to trim (regularly) >logfiles such as /usr/adm/sulog and /usr/spool/smail/log/logfile, >and the such that accumalte frequently ... yet retain the last >few entries while deleting the rest... > >I've heard about a program like this somewhere, but haven't been >able to find it. I use 'prune', which came out on the net in 1985. It deals with ASCII files only, but will chop them using a list of files-newsizes in /etc/default/prune. The whole source code is barely 4K of ASCII, so I'll mail it to anyone who asks. Jean-Pierre Radley Unix in NYC jpr@jpr.com jpradley!jpr CIS: 72160,1341