Date: Thu, 9 Sep 1999 16:59:07 +0300 From: Ruslan Ermilov <ru@ucb.crimea.ua> To: Jason Welsh <jawelsh@cisco.com> Cc: freebsd-questions@FreeBSD.ORG Subject: Re: proc and uptime on freebsd Message-ID: <19990909165907.A51179@relay.ucb.crimea.ua> In-Reply-To: <37D7B8F6.1FA8EC1A@cisco.com>; from Jason Welsh on Thu, Sep 09, 1999 at 09:41:10AM -0400 References: <37D7B8F6.1FA8EC1A@cisco.com>
next in thread | previous in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?19990909165907.A51179>