Article View: can.usrgroup
Article #739Re: Trimming the wtmp file
From: Drew Sullivan
Date: Thu, 21 May 1992 22:32
Date: Thu, 21 May 1992 22:32
17 lines
1079 bytes
1079 bytes
In article <9205201503.AA01446@moore.com> paul@moore.com (Paul Maclauchlan) writes: >Is there a utility that I can use to trim the contents of the wtmp >file from the "top"? > >I'd like to keep a month or so of data, but lose what is older. > >Thanks for your help! Sure, once per month, mv /etc/wtmp /etc/wtmp.old A simple entry in cron such as: 0 5 1 * * mv /etc/wtmp /etc/wtmp.old would do it. Now your first wtmp.old would be large, but that would fix it's self next month. -- -- Drew Sullivan, <drew@lethe.uucp>
Technical Details
Message-ID:
<1992May21.223216.5474@lethe.uucp>Path:
arc1-ca.pugleaf.net!sparky!uunet!news-server.csri.toronto.edu!torsqnt!uunorth!lethe!drewReferences:
<9205201503.AA01446@moore.com>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 1149bd,382dd2fa7fff7473 X-Google-Attributes: gid1149bd,public X-Google-ArrivalTime: 1992-05-21 14:33:26 PST Newsgroups: can.usrgroup Path: arc1-ca.pugleaf.net!sparky!uunet!news-server.csri.toronto.edu!torsqnt!uunorth!lethe!drew From: drew@lethe.uucp (Drew Sullivan) Subject: Re: Trimming the wtmp file Organization: Systems Software Distribution: ont Date: Thu, 21 May 92 22:32:16 GMT Message-ID: <1992May21.223216.5474@lethe.uucp> References: <9205201503.AA01446@moore.com> Lines: 17