[Frederik]
> Hello again.
> Is there an easy way to get some statistics on who has logged in to
> the system - preferably by email?

This one-liner will fetch how many have logged in so far from the auth
log:

  grep 'session open' /var/log/auth.log | grep "^$(date +"%b %e")" | \
    grep -v CRON | egrep -v 'root|munin|daemon|nobody'| \
    rev | awk '{print $3}' | rev | sort -u | wc -l

Perhaps you can use it as a starting point?

Happy hacking,
-- 
Petter Reinholdtsen


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to