Quote:
|
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.
|
Could you explain how to parse the /var/run/utmp file. It is in binary format.