On Fri, Jan 31, 2014 at 4:12 PM, Alan Young <[email protected]> wrote:

> I'm not looking to kick them off, at least not yet, just report the
> amount of time.  As far as I can tell, if I filter the output of last
> for tty\d I get only the one login (assuming they don't Ctl-Alt-#, but
> if they do that's their own fault) my howlong script already handles
> mutlpke users.
>

What about parsing the login records from syslog? It wouldn't be too hard to
match up the logins and logouts and sum up the time in between.

Corey

/*
PLUG: http://plug.org, #utah on irc.freenode.net
Unsubscribe: http://plug.org/mailman/options/plug
Don't fear the penguin.
*/

Reply via email to