From owner-freebsd-questions Thu Sep 9 7: 1:10 1999 Delivered-To: freebsd-questions@freebsd.org Received: from relay.ucb.crimea.ua (relay.ucb.crimea.ua [212.110.138.1]) by hub.freebsd.org (Postfix) with ESMTP id 7C74015151 for ; Thu, 9 Sep 1999 07:00:35 -0700 (PDT) (envelope-from ru@ucb.crimea.ua) Received: (from ru@localhost) by relay.ucb.crimea.ua (8.9.3/8.9.3/UCB) id QAA54347; Thu, 9 Sep 1999 16:59:07 +0300 (EEST) (envelope-from ru) Date: Thu, 9 Sep 1999 16:59:07 +0300 From: Ruslan Ermilov To: Jason Welsh Cc: freebsd-questions@FreeBSD.ORG Subject: Re: proc and uptime on freebsd Message-ID: <19990909165907.A51179@relay.ucb.crimea.ua> Mail-Followup-To: Jason Welsh , freebsd-questions@FreeBSD.ORG References: <37D7B8F6.1FA8EC1A@cisco.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 0.95.3i In-Reply-To: <37D7B8F6.1FA8EC1A@cisco.com>; from Jason Welsh on Thu, Sep 09, 1999 at 09:41:10AM -0400 X-Operating-System: FreeBSD 3.2-STABLE i386 Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On Thu, Sep 09, 1999 at 09:41:10AM -0400, Jason Welsh wrote: > im trying to help someone port an uptime daemon to Freebsd (since I cant > find any).. and hes asking about where to find system uptime in /proc > i know in linux, its easy, its just /proc/uptime > but /proc seems to be a totally different animal on freebsd. > is there a file that keeps uptime in /proc?? > AFAIK, no. The way uptime is measured by /usr/bin/uptime is `/bin/date`-`/sbin/sysctl kern.boottime`. Cheers, -- Ruslan Ermilov Sysadmin and DBA of the ru@ucb.crimea.ua United Commercial Bank, ru@FreeBSD.org FreeBSD committer, +380.652.247.647 Simferopol, Ukraine http://www.FreeBSD.org The Power To Serve http://www.oracle.com Enabling The Information Age To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message