Le vendredi 25 mars 2005 à 22:08 +0100, Michelle Konzack a écrit : > Hello *, > > curently I am coding a tool which run from cron (as root) periodicly > and if a $USER is loged into X it shows Messages. > > My Problem is, HOW to find the $USER who is connected to a $DISPLAY. > > If I start two xserver I have e.g. :0 and :1. > > I was serching for a command which tell me which user was opening the > xsession but without luck. 'who' does not work for this.
Well, worksforme(tm). Maybe it depends on the display manager and/or the session manager? 15:03 [EMAIL PROTECTED] ~ > who joss :0 Mar 26 14:42 joss pts/0 Mar 26 14:42 (:0.0) joss pts/1 Mar 26 14:42 (:0.0) toto :20 Mar 26 15:04 toto pts/2 Mar 26 15:06 (:20.0) -- .''`. Josselin Mouette /\./\ : :' : [EMAIL PROTECTED] `. `' [EMAIL PROTECTED] `- Debian GNU/Linux -- The power of freedom
signature.asc
Description: Ceci est une partie de message =?ISO-8859-1?Q?num=E9riquement?= =?ISO-8859-1?Q?_sign=E9e?=