Trying to find out if a particular user is logged into the machine, specifically the user using the graphical user interface.
Is this possible via command line?
|
Trying to find out if a particular user is logged into the machine, specifically the user using the graphical user interface. Is this possible via command line? |
|||||||||
|
|
GUI:
Command Line:
In a C program: The C code in Technical Q&A QA1133: Determining console user login status shows how to determine which user owns the active GUI session. For example:
|
|||
|
|
|
Via the command line, |
|||||
|