Date: Wed, 12 May 1999 19:25:39 -0400 (EDT) From: "Crist J. Clark" <cjc@cc942873-a.ewndsr1.nj.home.com> To: dwhite@resnet.uoregon.edu (Doug White) Cc: cjclark@home.com, chrisj@outcast.media-net.net, freebsd-questions@FreeBSD.ORG Subject: Re: oddity with time Message-ID: <199905122325.TAA07575@cc942873-a.ewndsr1.nj.home.com> In-Reply-To: <Pine.BSF.4.03.9905121144380.23756-100000@resnet.uoregon.edu> from Doug White at "May 12, 99 11:46:52 am"
next in thread | previous in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199905122325.TAA07575>