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?
Phil.
--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]