Xref: utzoo comp.sources.wanted:16445 comp.unix.questions:30809 Path: utzoo!utgpu!news-server.csri.toronto.edu!rpi!zaphod.mps.ohio-state.edu!pacific.mps.ohio-state.edu!linac!uwm.edu!ux1.cso.uiuc.edu!bradley.bradley.edu!buhub!guru From: guru@buhub.bradley.edu (Jerry Whelan) Newsgroups: comp.sources.wanted,comp.unix.questions Subject: Searching the output of last Summary: Show me who was logged in a particular moment in time Keywords: last awk sed perl C whatever Message-ID: <1991Apr28.070748.5279@bradley.bradley.edu> Date: 28 Apr 91 07:07:48 GMT Sender: news@bradley.bradley.edu Organization: Bradley University Lines: 15 Nntp-Posting-Host: buhub.bradley.edu 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 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@wiliki.eng.hawaii.edu