Am 2005-03-26 15:07:37, schrieb Josselin Mouette:
> 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 joss@arrakis ~ > 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)
:-/
I asume your are using TESTING or UNSTABLE...
Under STABLE I get only something like
joss pts/0 Mar 26 14:42
joss pts/1 Mar 26 14:42
toto pts/2 Mar 26 15:06
This is, why I have asked...
The test I must do, should work under WOODY and higher Releases.
Greetings
Michelle
--
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