From owner-freebsd-stable Wed Feb 16 15:51: 9 2000 Delivered-To: freebsd-stable@freebsd.org Received: from builder.freebsd.org (builder.FreeBSD.ORG [204.216.27.24]) by hub.freebsd.org (Postfix) with ESMTP id BD5B637B513 for ; Wed, 16 Feb 2000 15:51:06 -0800 (PST) (envelope-from rudy-bulk@monkeybrains.net) Received: from dipsy.monkeybrains.net (dipsy.monkeybrains.net [216.231.58.4]) by builder.freebsd.org (Postfix) with ESMTP id 5025C132E6 for ; Wed, 16 Feb 2000 15:50:22 -0800 (PST) Received: from monkeybrains.net (rururudy-0.dsl.speakeasy.net [216.231.57.142]) by dipsy.monkeybrains.net (8.8.8/8.8.8) with ESMTP id PAA05994 for ; Wed, 16 Feb 2000 15:56:57 -0800 (PST) (envelope-from rudy-bulk@monkeybrains.net) Message-ID: <38AB37E9.2DE98CD3@monkeybrains.net> Date: Wed, 16 Feb 2000 15:51:05 -0800 From: Rudy Rucker X-Mailer: Mozilla 4.51 [en] (Win98; I) X-Accept-Language: en,pdf MIME-Version: 1.0 To: freebsd-stable@freebsd.org Subject: `w' shows bogus IDLE time (sometimes) Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-freebsd-stable@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG If a user logs in, and runs no commands, they are marked as idle. They will be marked as 'idle since the last login on that tty'. For example, I have a machine with hardly any shell users. If I login 3 times, I grab ttyp5 (relatively, a high numbered tty on this box!). The last time anyone logged into ttyp5 was 27 days ago. So, `last' shows a user who logged in 1 minute ago, but `w' shows they have been idle for 27 days. It's raining, and I am bored, can you tell? Rudy 144> last | head -10 | grep monkey monkey ttyp5 216.231.57.xxx Wed Feb 16 15:43 still logged in monkey ttyp3 216.231.57.xxx Wed Feb 16 15:43 still logged in monkey ttyp2 216.231.57.xxx Wed Feb 16 15:43 still logged in monkey ttyp2 216.231.57.xxx Wed Feb 16 15:04 - 15:34 (00:30) 145> w 3:44PM up 12 days, 22:16, 7 users, load averages: 0.00, 0.01, 0.00 USER TTY FROM LOGIN@ IDLE WHAT monkey p1 xxx.dsl.s 12:57PM - w monkey p2 xxx.dsl.s 3:43PM 9 -tcsh (tcsh) monkey p3 xxx.dsl.s 3:43PM 24 -tcsh (tcsh) monkey p5 xxx.dsl.s 3:43PM 27days -tcsh (tcsh) 146> date Wed Feb 16 15:44:18 PST 2000 To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-stable" in the body of the message