login time using last, awk, sed

From: joshua (joshua_au_at_hotmail.com)
Date: 04/30/03


Date: Wed, 30 Apr 2003 18:51:17 +0800

I am trying to figure the most effective way to check everyone's login hours
per week, or possibly per day. so far, i have done
last username > txt
open txt as *txt csv under star office, and then adding the last 3 columns..
this is as the columns are not evenly seperated by tab, only by space.

however, i hope to be able to write a script to do so at the command line,
so I can iteratively read off everyone's login patterns to know who is
loafing

would someone like to comment how i should get started?

i assume it should be something close to - last | awk{print $6 " " $7}
but i guess i have to incorporate sed and awk to be able to grep the last
column.

regards,
joshua_au@hotmail.com



Relevant Pages

  • Problem handling Login control Authenticate event
    ... login process. ... required for login… they have a username, password, and another “location ... and when the extra input field is submitted ... for the users where this concatenation of the two input field ...
    (microsoft.public.dotnet.framework.aspnet)
  • eFiction <= 2.0 multiple vulnerabilities
    ... "Efiction is a software program that enables users to run automated original or fanfiction ... if magic_quotes_gpc off -> Login bypass: ... username: 'UNION SELECT 'd41d8cd98f00b204e9800998ecf8427e',penname,uid,userskin,level,email FROM fanfiction_authors where level=1/* ...
    (Bugtraq)
  • RE: unable to login as user
    ... unable to login as user ... Log in as root and look closely at the user account. ... the system just seems to hang and then go back to the username ...
    (RedHat)
  • Re: Unable to log into OWA despite using correct username and pass
    ... the OWA interface despite using the correct username and password. ... OWA login page is displayed correctly but when trying to login users get ... "You could not be logged on to Outlook Web Access. ... The issue is affecting all accounts including the 'Administrator' ...
    (microsoft.public.exchange.clients)
  • Re: ADSL connection username change (bt_test) - Side effects?
    ... automatically re-establish itself after a failure, ... does using the BT test login have any side effects. ... Has you tried re-entering the username and PW prior to trying ... My router recently locked me out of MAC code filtering settings and it was ...
    (uk.telecom.broadband)