Re: last user login script?
"Taylor, ForrestX" <[email protected]> Tue, 21 Oct 2003 14:33:45 -0700
| Newsgroups | gmane.linux.redhat.release.enigma |
|---|---|
| Message-ID | <[email protected]> |
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 --