View Single Post

   
  #4 (permalink)  
Old 01-16-2008, 09:40 AM
Stefan Jankowski
 
Posts: n/a
Default Re: Tool to cut down utmp(x) / wtmp(x)

>>>>> Very <thecaspers@yahoo.com> writes:

> Thanks. It works. How to truncate the record base on number of
> days instead of number of records ?


If you carefully look at the output of fwtmp you'll find it contains
the timestamp in seconds-since-epoch format in columns 51-60, so you
can filter on that.

--
Stefan Jankowski
Sysadmin, University of Freiburg, CS Dpt.
s/spambucket//
s/dave\.null/${FORENAME}.${LASTNAME}/
Reply With Quote