From owner-freebsd-questions Wed May 12 16:25:40 1999 Delivered-To: freebsd-questions@freebsd.org Received: from cc942873-a.ewndsr1.nj.home.com (cc942873-a.ewndsr1.nj.home.com [24.2.89.207]) by hub.freebsd.org (Postfix) with ESMTP id 9CAA415675 for ; Wed, 12 May 1999 16:25:33 -0700 (PDT) (envelope-from cjc@cc942873-a.ewndsr1.nj.home.com) Received: (from cjc@localhost) by cc942873-a.ewndsr1.nj.home.com (8.9.3/8.8.8) id TAA07575; Wed, 12 May 1999 19:25:39 -0400 (EDT) (envelope-from cjc) From: "Crist J. Clark" Message-Id: <199905122325.TAA07575@cc942873-a.ewndsr1.nj.home.com> Subject: Re: oddity with time In-Reply-To: from Doug White at "May 12, 99 11:46:52 am" To: dwhite@resnet.uoregon.edu (Doug White) Date: Wed, 12 May 1999 19:25:39 -0400 (EDT) Cc: cjclark@home.com, chrisj@outcast.media-net.net, freebsd-questions@FreeBSD.ORG Reply-To: cjclark@home.com X-Mailer: ELM [version 2.4ME+ PL40 (25)] MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Doug White wrote, > On Thu, 6 May 1999, Crist J. Clark wrote: > > > % w > > 2:26PM up 1 day, 3:06, 14 users, load averages: 0.69, 0.83, 0.76 > > USER TTY FROM LOGIN@ IDLE WHAT > > cjc v0 - 9:57AM 4:28 xinit /usr2/people/cjc/.xinitr > > cjc p0 :0.0 9:57AM 1:59 elm > > cjc p1 :0.0 9:57AM 35 -csh (tcsh) > > cjc p2 :0.0 9:57AM 19:57 top > > . > > . > > . > > > > Same deal. > > Hm. [snip] > > Both of these are 2.2.8-STABLE and... > > > > > What version of XFree86 are you on? > > > > XFree86-3.3.2. I think. I set up a 3.1 box for a co-worker and I'll > > now log in and start X... Whoa! Look at that, > > [..] > > Try deleting /var/log/utmp. Perhaps you're having a format conflict? That particular machine was a fresh install of 3.1. No 2.2.8 to 3.1 issues there. > xterm just isn't playing nice. I think I see what happens. xterms seem to start with junk in the idle time (or perhaps some _very_ old value they suck up from somewhere). Most xterms have interactive programs, but when a program is started with no interaction... For example, I just started my X here, and, as usual, the top window has a garbage idle time, % w 7:16PM up 57 days, 20:12, 6 users, load averages: 0.12, 0.15, 0.08 USER TTY FROM LOGIN@ IDLE WHAT cjc v0 - 7:05PM 10 xinit /usr/home/cjc/.xinitrc - cjc p0 :0.0 7:06PM - w cjc p1 :0.0 7:06PM 7:56 top . . . Now, if I interact with top, say change the refresh rate, % w 7:18PM up 57 days, 20:13, 6 users, load averages: 0.09, 0.14, 0.08 USER TTY FROM LOGIN@ IDLE WHAT cjc v0 - 7:05PM 12 xinit /usr/home/cjc/.xinitrc - cjc p0 :0.0 7:06PM - w cjc p1 :0.0 7:06PM - top It clears out the idle correctly. Try something like, % xterm -e top Yourself and see what happens. I just tried and, cjc p7 :0.0 7:19PM 17:51 top Now, watch this... I'll kill it and try again, % kill %1 % xterm -e top % w . . cjc p7 :0.0 7:20PM 17:52 top . . . That number is remembered somewhere. I guess it must be utmp. > > For completeness, here is my .xinitrc, I end sessions by killing the > > 'login' window (and I like to kill anything else running under X > > gracefully), > > Looks OK. (Interesting way around ssh-add ... did you have to compile it > with --without-x so you don't get the nice X password requester?) No, I had already written that into my .xinitrc when I actually noticed that it would pop up a window on its own. Now I'm just used to my little window. :) ssh-add will print a prompt if started in an interactive mode. If I type, % ssh-add < /dev/null At the command line, I still get the little window from ssh. -- Crist J. Clark cjclark@home.com To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message