Retired Document
Important: This sample code may not represent best practices for current development. The project may use deprecated symbols and illustrate technologies and techniques that are no longer recommended.
UTXplorer
Last Revision: | Version 1.0, 2008-03-19 Uses the <utmpx.h> API to display current login sessions and login history. |
Build Requirements: | Xcode 3.0 |
Runtime Requirements: | Mac OS X 10.5 |
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.
Copyright © 2008 Apple Inc. All Rights Reserved. Terms of Use | Privacy Policy | Updated: 2008-03-19