I have made a script I think will do what I want, make a list of users and
when they logged in, sorted by time stamp of pref file. Requires the Show
User and IP address plugin. I run the script from Webmin. Sorry, but the
comments are in Norwegian...
#!/bin/bash
#Fjern forrige versjon og sett utgangspunkt for ls
rm -f /root/loginliste
cd /var/lib/squirrelmail/prefs/
#sorter etter tid
ls -l --sort=time *pref >> /root/liste
#Fjern alt unntatt tidspunkt og brukernavn
awk -F" " '{print $6,$7,$8,$9}' /root/liste > /root/liste2
awk -F".pref" '{print $1}' /root/liste2 > /root/loginliste
#Fjern midlertidige filer
rm -f /root/liste
rm -f /root/liste2
#Skriv resultat til skjerm
cat /root/loginliste
-------------------------------------------------------
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
--
squirrelmail-users mailing list
Posting Guidelines:
http://www.squirrelmail.org/wiki/MailingListPostingGuidelines
List Address: [email protected]
List Archives:
http://news.gmane.org/thread.php?group=gmane.mail.squirrelmail.user
List Archives: http://sourceforge.net/mailarchive/forum.php?forum_id=2995
List Info: https://lists.sourceforge.net/lists/listinfo/squirrelmail-users