Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Currently Active (foreground) Console Session



On 18/01/08 4:46, henri wrote:

I would like to determine (from the command line) the active console user who logged in via the login window.

The commands 'who' and 'w' produce the closest output to what I am after. Is there a command which will output the user name of the console session which is in the foreground?

Hello Henri,

Depending on your needs, perhaps would fetching the owner of

   /dev/console

do the trick?

HTH,
Axel
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Client-management mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/client-management/email@hidden

This email sent to email@hidden
References: 
 >Currently Active (foreground) Console Session (From: henri <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.