Searching the output of last

John 'tms' Navarra navarra at casbah.acns.nwu.edu
Mon Apr 29 12:12:36 AEST 1991


In article <1991Apr28.070748.5279 at bradley.bradley.edu> guru at buhub.bradley.edu (Jerry Whelan) writes:
>
>	Does anyone have/know of a program to parse the output of the
>'last' command and tell me who was logged in at some arbitrary time?
>I'd like to be able to type: 
>
> 			whenwho 9:56

         do last | grep time  
                  
>
>and get a list of all the people who were logged in during that particular
>minute.  My site resets the wtmp file at 4 AM, so we are not dealing with
>infinite output from 'last.'  Awk, perl, C or anything that works reasonably
>quickly is fine with me.
>
>-------------------------------------------------------------------------------
>	"I'm not sure what I mean, so I'm going to listen to what I say."
> guru@ (buhub.bradley.edu || bucc1.bradley.edu) || whelan at wiliki.eng.hawaii.edu


-- 
>From the Lab of the MaD ScIenTiST:
      
navarra at casbah.acns.nwu.edu



More information about the Comp.unix.questions mailing list