*BSD News Article 78803


Return to BSD News archive

From: paul@bean.xtdnet.nl (Paul Wouters)
Newsgroups: comp.unix.programmer,comp.os.linux.development.apps,comp.unix.bsd.freebsd.misc
Subject: Re: System call for querying system load?
Date: 20 Sep 1996 17:24:32 +0200
Organization: Xtended Internet
Lines: 8
Message-ID: <paul.843233039@bean>
References: <51cjj1$1k7@news.cyberenet.net> <DxrMGE.59t@pe1chl.ampr.org> <51htd7$19t@main.gbdata.com> <51qh9o$bl1@dazed.nol.net>
NNTP-Posting-Host: bean.xtdnet.nl
X-Newsreader: NN version 6.5.0 #3 (NOV)
Path: euryale.cc.adfa.oz.au!newshost.carno.net.au!harbinger.cc.monash.edu.au!munnari.OZ.AU!news.mel.connect.com.au!news.mira.net.au!pumpkin.pangea.ca!chronos.syr.edu!www.nntp.primenet.com!nntp.primenet.com!cs.utexas.edu!math.ohio-state.edu!jussieu.fr!univ-lyon1.fr!in2p3.fr!swidir.switch.ch!surfnet.nl!sun4nl!dataweb.net!Leiden.NL.net!Utrecht.NL.net!xtdnet.nl!bean!paul
Xref: euryale.cc.adfa.oz.au comp.unix.programmer:43495 comp.os.linux.development.apps:22108 comp.unix.bsd.freebsd.misc:27671

Just open the file /proc/loadavg and read and parse the data.

Paul
-- 
Due to my recent postings in various Usenet newsgroups, I have been flooded
with unwanted, unsolicited, commercial email. I have taken steps to automate
my, not so polite, retaliation. I am sorry I am forced to do this, but I
am receiving several junk emails a day now.  You have been warned.