Version: 1.0

Posted: 2008-03-19

Build Requirements: Xcode 3.0

Runtime Requirements: Mac OS X 10.5

View Source Code:

Download Sample (“UTXplorer.zip”, 33.4K)
Download Sample (“UTXplorer.dmg”, 95.5K)



Description

UTXplorer demonstrates basic use of the <utmpx.h> API that was introduced in Mac OS X 10.5 as a replacement for the "utmp", "wtmp" and "lastlog" files. You can use this API to determine which users are logged into the machine and get a historical records of logins and logouts. Commands like "who" and "last" are based on this API.

Document Revision History

Date Notes
2008-03-19Uses the <utmpx.h> API to display current login sessions and login history.

Did this document help you?
Yes: Tell us what works for you.
It’s good, but: Report typos, inaccuracies, and so forth.
It wasn’t helpful: Tell us what would have helped.