Overflowing wtmp

Neil Rickert rickert at mp.cs.niu.edu
Wed Jan 30 23:45:01 AEST 1991


In article <120587 at uunet.UU.NET> rbj at uunet.UU.NET (Root Boy Jim) writes:
>In article <338 at alchemy.UUCP> bbs at 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               <rickert at cs.niu.edu>
  Northern Illinois Univ.
  DeKalb, IL 60115                                   +1-815-753-6940



More information about the Comp.unix.admin mailing list