Phil Endecott wrote: > Julien Cristau wrote: >> On Thu, Sep 4, 2008 at 15:04:14 +0100, Phil Endecott wrote: >> >>> No this doesn't work for me. You're looking for :0 in the FROM >>> column, right? I have it in the TTY column: >>> >>> $ w -hs >>> phil tty1 - 17:19 -bash >>> root tty2 - 15:31 -bash >>> phil pts/0 egypt.chezphil.o 0.00s sshd: phil [priv] >>> phil pts/2 egypt.chezphil.o 1:54 nano >>> libskyline/src/compute_skyline.cc >>> phil :0 - ?xdm? -:0 >>> >>> Very peculiar. I'm not really sure what to suggest; I think that >>> understanding what w, who, finger etc. are really trying to tell us >>> WRT X sessions would be a good start. I doubt there's anything >>> useful in the man pages.... >>> >> Your wtmp entry comes from xdm, Bart's probably comes from a terminal >> emulator. I have this: >> USER TTY FROM LOGIN@ IDLE JCPU PCPU WHAT >> julien :0 - 02:54 ?xdm? 14:13m 0.04s >> -:0 julien pts/0 :0.0 02:54 25:03m 0.58s >> 0.58s bash >> (first xdm, then xterm) >> >> I'd say looking at the tty is the right thing to do. > > Ah yes; I did wonder about that. For some reason I'm not seeing lines > in w, who or finger output for terminal emulators running inside my X > session, though I have seen them in the past. If you did have them they > could in principle be for different users than the user who owns the X > session itself. The TTY=:0 line is the right one to use. But > presumably Bart is not seeing a line like that, right?
Nope. I use gdm, and I get: $ w -hs root tty1 - 2:19 -bash root tty2 - 2:19 -bash bsamwel tty7 :0 0.00s x-session-manager root pts/1 :0.0 2:09m gnome-terminal bsamwel pts/2 :0.0 0.00s w -hs The first two lines are from virtual terminals, the third one is for tty7 which is what my X is running on, and the final two ones are for terminals. Cheers, Bart -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]