From owner-freebsd-hackers@FreeBSD.ORG Fri Mar 16 11:53:41 2012 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 2C349106564A for ; Fri, 16 Mar 2012 11:53:41 +0000 (UTC) (envelope-from guru@unixarea.de) Received: from ms16-1.1blu.de (ms16-1.1blu.de [89.202.0.34]) by mx1.freebsd.org (Postfix) with ESMTP id D8A328FC15 for ; Fri, 16 Mar 2012 11:53:40 +0000 (UTC) Received: from [89.204.130.212] (helo=tiny.Sisis.de) by ms16-1.1blu.de with esmtpsa (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.69) (envelope-from ) id 1S8Vit-0007ik-OC; Fri, 16 Mar 2012 12:53:32 +0100 Received: from tiny.Sisis.de (localhost [127.0.0.1]) by tiny.Sisis.de (8.14.5/8.14.3) with ESMTP id q2GBrSSs001738; Fri, 16 Mar 2012 12:53:29 +0100 (CET) (envelope-from guru@unixarea.de) Received: (from guru@localhost) by tiny.Sisis.de (8.14.5/8.14.3/Submit) id q2GBrSDD001737; Fri, 16 Mar 2012 12:53:28 +0100 (CET) (envelope-from guru@unixarea.de) X-Authentication-Warning: tiny.Sisis.de: guru set sender to guru@unixarea.de using -f Date: Fri, 16 Mar 2012 12:53:27 +0100 From: Matthias Apitz To: Rodrigo OSORIO Message-ID: <20120316115326.GA1727@tiny> References: <20120316091327.GA27873@oldfaithful.bebik.local> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20120316091327.GA27873@oldfaithful.bebik.local> X-Operating-System: FreeBSD 10.0-CURRENT r226986 (i386) User-Agent: Mutt/1.5.21 (2010-09-15) X-Con-Id: 51246 X-Con-U: 0-guru X-Originating-IP: 89.204.130.212 Cc: freebsd-hackers@freebsd.org Subject: Re: How to use pfind in freeBSD X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Matthias Apitz List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 16 Mar 2012 11:53:41 -0000 El día Friday, March 16, 2012 a las 10:13:27AM +0100, Rodrigo OSORIO escribió: > Hi, > > pfind and friends looks like kernel only function. I can suggest you to explore > the sysctl(3) way to recover the kern.proc structures. There are fexw examples > on the internet, you can check a code I wrote few years ago to recover the > battery state in my laptop using sysctl ; hope this help. > http://www.bebik.net/doku.php/battery_life_and_sysctl_3 Hi Rodrigo, Thanks for your pointer to your page; the page has a small typo: % sysctrl hw.acpi.battery it should say "sysctl"; one question: how do you get the output of 'battery' into the status bar (I'musing KDE 3.5.10). Thanks matthias PD: the lines of your mail are filled up to position 191 with trailing blanks; -- Matthias Apitz e - w http://www.unixarea.de/ UNIX since V7 on PDP-11, UNIX on mainframe since ESER 1055 (IBM /370) UNIX on x86 since SVR4.2 UnixWare 2.1.2, FreeBSD since 2.2.5