Mailinglist Archive: opensuse (2441 mails)
| < Previous | Next > |
Re: [SLE] who vs w output
- From: Sid Boyce <sboyce@xxxxxxxxxxxxxxxx>
- Date: Sun, 19 Jun 2005 12:01:47 +0100
- Message-id: <42B5509B.5090401@xxxxxxxxxxxxxxxx>
Scott Leighton wrote:
I'm seeing the same counts on 9.3 x86 and x86_64 for both, who (GNU coreutils) 5.3.0 and procps version 3.2.5 for w. I'm perplexed also as to why your numbers differ. "w" doesn't appear in my output from the w command. I haven't done a YOU in a while, that may be worth considering as a factor -- the versions may highlight this.
Regards
Sid.
--
Sid Boyce ... Hamradio License G3VBV, Keen licensed Private Pilot
Retired IBM Mainframes and Sun Servers Tech Support Specialist
Microsoft Windows Free Zone - Linux used for all Computing Tasks
I'm perplexed over the output of who versus w. who displays 8 'users', two of which I know
for sure are not logged on the box. ( the last
two entries ).
helphand :0 2005-06-18 10:36 (console)
root tty1 2005-06-11 21:11
helphand pts/0 2005-06-18 10:36
helphand pts/2 2005-06-18 10:36
helphand pts/1 2005-06-18 10:36
helphand pts/4 2005-06-18 16:19
dirtkid pts/6 2005-06-18 19:12
dirtkid pts/7 2005-06-18 19:15
w displays 6 'users', yet the count on the first
line agrees with 'who', it says 8 users.
helphand@helphand:~> w
23:17:49 up 9 days, 5:12, 8 users, load average: 0.04, 0.10, 0.09
USER TTY LOGIN@ IDLE JCPU PCPU WHAT
helphand :0 10:36 ?xdm? 1:18m 0.07s /bin/sh /usr/X11R6/bin/kde
root tty1 11Jun05 7days 0.13s 0.13s -bash
helphand pts/0 10:36 12:41m 0.00s 27.23s kded [kdeinit] kded
helphand pts/2 10:36 11:19m 0.66s 0.11s /bin/bash
helphand pts/1 10:36 2:58m 0.21s 0.09s /bin/bash
helphand pts/4 16:19 0.00s 0.29s 0.00s w
helphand@helphand:~>
A ps shows no processes running under the 'user'
that lists in who;
helphand@helphand:~> ps -ef | grep dirtkid
helphand 10752 23285 0 23:18 pts/4 00:00:00 grep dirtkid
So, why aren't these utilities consistent and why
does 'who' see users as logged in when they are
not? SuSE 9.3 64 bit.
Scott
I'm seeing the same counts on 9.3 x86 and x86_64 for both, who (GNU coreutils) 5.3.0 and procps version 3.2.5 for w. I'm perplexed also as to why your numbers differ. "w" doesn't appear in my output from the w command. I haven't done a YOU in a while, that may be worth considering as a factor -- the versions may highlight this.
Regards
Sid.
--
Sid Boyce ... Hamradio License G3VBV, Keen licensed Private Pilot
Retired IBM Mainframes and Sun Servers Tech Support Specialist
Microsoft Windows Free Zone - Linux used for all Computing Tasks
| < Previous | Next > |