Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!swrinde!elroy.jpl.nasa.gov!sdd.hp.com!spool2.mu.edu!uwm.edu!ux1.cso.uiuc.edu!mp.cs.niu.edu!rickert From: rickert@mp.cs.niu.edu (Neil Rickert) Newsgroups: comp.unix.admin Subject: Re: Overflowing wtmp Keywords: solution, C, mail me for a copy Message-ID: <1991Jan30.124501.6670@mp.cs.niu.edu> Date: 30 Jan 91 12:45:01 GMT References: <705@camco.Celestial.COM> <338@alchemy.UUCP> <120587@uunet.UU.NET> Organization: Northern Illinois University Lines: 24 In article <120587@uunet.UU.NET> rbj@uunet.UU.NET (Root Boy Jim) writes: >In article <338@alchemy.UUCP> bbs@alchemy.UUCP (BBS Administration) writes: >>a copy of my "wsize" program... >>... I run it as a "root" crontask on the 1st and 15th > >Tsk tsk, overkill. Howabout a range of 2000 to 3000 records? Try > > #! /bin/sh > cd /usr/adm > split wtmp > set x?? /dev/null /dev/null /dev/null /dev/null > shift `expr $# - 3` > cat $* > xxx > mv xxx wtmp > rm -f x?? Hey. That's neat. But what do we do if we have a 'split' that wants to break the file based on lines, and a 'wtmp' that doesn't contain lines? -- =*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*= Neil W. Rickert, Computer Science Northern Illinois Univ. DeKalb, IL 60115 +1-815-753-6940