Date: Fri, 16 Mar 2012 12:53:27 +0100 From: Matthias Apitz <guru@unixarea.de> To: Rodrigo OSORIO <rodrigo@bebik.net> Cc: freebsd-hackers@freebsd.org Subject: Re: How to use pfind in freeBSD Message-ID: <20120316115326.GA1727@tiny> In-Reply-To: <20120316091327.GA27873@oldfaithful.bebik.local> References: <CAB%2BEr%2B==aBhi5eizXOjDQThi=VD%2B1z%2Bvr4jjos0-FbZg00W=8Q@mail.gmail.com> <20120316091327.GA27873@oldfaithful.bebik.local>
next in thread | previous in thread | raw e-mail | index | archive | help
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 <guru@unixarea.de> - 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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20120316115326.GA1727>