[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: How to detect which user is connected to $DISPLAY

Am 2005-03-27 18:25:20, schrieb sean finney:

> or, if you want to take it a level of abstraction deeper, these programs
> are all using the utmpx library calls to register the "logins".  w,
> who, last, and finger all use utmpx system calls to tell you about who's
> currently (or previously) logged in.  
> a while back i wrote a neat little program to query the utmpx databases,
> called "wuzzah".  while the program itself may or may not be helpful for
> this specific need, the source code would be helpful if you go this
> direction (and are using a c program).

Is the souce downloadable ?
I think it can be easily modified to be a commandline tool.

> 	sean


Linux-User #280138 with the Linux Counter, http://counter.li.org/ 
Michelle Konzack   Apt. 917                  ICQ #328449886
                   50, rue de Soultz         MSM LinuxMichi
0033/3/88452356    67100 Strasbourg/France   IRC #Debian (irc.icq.com)

Attachment: signature.pgp
Description: Digital signature

Reply to: