Path: utzoo!utgpu!news-server.csri.toronto.edu!bonnie.concordia.ca!uunet!bria!mike Newsgroups: comp.unix.admin Subject: Re: Overflowing wtmp Keywords: wtmp cron cleanup Message-ID: <390@bria> Date: 24 Jan 91 07:17:56 GMT References: <92@tdatirv.UUCP> <1991Jan23.150231.608@truevision.com> Reply-To: mike@bria.UUCP (Michael Stefanik) Organization: Briareus Corporation, Los Angeles, CA Lines: 20 In article <92@tdatirv.UUCP> sarima@tdatirv.UUCP (Stanley Friesen) writes: >I have found that my wtmp file tends to grow without bound. >This is annoying. Is there any clean way to trim it, short of the rather >crude 'cat /dev/null > /etc/wtmp' approach. (I *do* know about cron, >I just need to know what to put in it). To do it with elegance and grace, how 'bout a little script: mv /usr/adm/wtmp /usr/adm/owtmp /usr/lib/acct/fwtmp /usr/adm/wtmp If you don't have fwtmp(1), then send me mail and I'll mail you back source. -- Michael Stefanik, Systems Engineer (JOAT), Briareus Corporation UUCP: ...!uunet!bria!mike -- technoignorami (tek'no-ig'no-ram`i) a group of individuals that are constantly found to be saying things like "Well, it works on my DOS machine ..."