View Single Post
Old Jul 6th, 2005, 9:40 AM   #7
Cerulean
Professional Programmer
 
Cerulean's Avatar
 
Join Date: Apr 2005
Location: London, England
Posts: 459
Rep Power: 4 Cerulean is on a distinguished road
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 is offline   Reply With Quote