Thread
:
Trapping user logins on Linux in python
View Single Post
Jul 6th, 2005, 9:40 AM
#
7
Cerulean
Professional Programmer
Join Date: Apr 2005
Location: London, England
Posts: 459
Rep Power:
4
Alternatively you can spawn a new who process every few seconds and read its output. That would be easier than parsing /var/run/utmp, but you'd get a performance hit for spawning a new process so often - i'd go with the file parsing option myself.
Cerulean
View Public Profile
Visit Cerulean's homepage!
Find More Posts by Cerulean