Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 21 Sep 2002 20:53:02 +1200
From:      Jonathan Chen <jonc@chen.org.nz>
To:        David Syphers <dsyphers@uchicago.edu>
Cc:        "Kevin D. Kinsey, DaleCo, S.P." <kdk@daleco.biz>, freebsd-stable@FreeBSD.ORG
Subject:   Re: Weird uptime(1) output
Message-ID:  <20020921085302.GA1671@grimoire.chen.org.nz>
In-Reply-To: <200209210127.35324.dsyphers@uchicago.edu>
References:  <20020921030553.GA656@grimoire.chen.org.nz> <005c01c2612f$8133d490$fa00a8c0@DaleCoportable> <200209210127.35324.dsyphers@uchicago.edu>

next in thread | previous in thread | raw e-mail | index | archive | help
On Sat, Sep 21, 2002 at 01:27:35AM -0500, David Syphers wrote:

[...]
> > uptime
> uptime: /dev/:0: No such file or directory
>  1:23AM  up 6 mins, 0 users, load averages: 0.00, 0.01, 0.00
> 
> As long as I've had this system, since 4.5-RC1, I've gotten this when I logged 
> into KDE as a user, su'd root in an xterm, and ran uptime. I didn't get it as 
> a normal user, but now I do. I don't know when that changed.

Thanks for the tip! I've tracked this down to the use of "kdm". If
someone logs in using "kdm", it makes an entry in /var/run/utmp with
the ttys entry of ":0". w(1) and uptime(1) examines this and since
there is no "/dev/:0", the complaint comes up.

While I like the fact that "kdm" makes a log entry (ie I like to know
who's logged in graphically), it's usage is not really compatible with
FreeBSD's uptime/w.

Cheers.
-- 
Jonathan Chen <jonc@chen.org.nz>
----------------------------------------------------------------------
                      Build a man a fire, and he'll be warm for a day.
        Set a man on fire, and he'll be warm for the rest of his life.

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-stable" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20020921085302.GA1671>