Subject: last user login script? 2003-10-21 - By Taylor, ForrestX
Back jonlists wrote: > > Looking for a script or something that would look at xferlog, given a > list of users, and generate a daily report of the last login by that > list of users. > > I'm not the greatest scripting guy in the world, would appreciate any > tips, existing scripts, resources, etc.
How about using the `last` command (man last for details)? A short script:
for i in `cat myuserlist`;do last $i | head -1;done
Forrest --
|
|