Usenet comp.unix.osf.osf1 (1992-2004)
 help / color / mirror / Atom feed
From: schemers@leland.Stanford.EDU (Roland Schemers)
Subject: Re: load average from C
Date: 2 May 1994 20:17:55 GMT	[thread overview]
Message-ID: <2q3n5j$r5o@nntp2.Stanford.EDU> (raw)
In-Reply-To: 2q36mf$cia@info.epfl.ch

In article <2q36mf$cia@info.epfl.ch>,
Stefan Monnier <monnier@di.epfl.ch> wrote:
>
>Is it possible to get the load average (or an approximation of it)
>from C, without calling system() ?
>(the more portable the better, but specific to osf/1 would be OK)
>

There really isn't a portable way to get the load average. Take a look 
at the man page under "table" (man table). I'm not sure if you need
any privs to get the load average using this call.

Roland



-- 
Roland J. Schemers III             |    Networking Systems 
Authentication Services Programmer |    414 Sweet Hall  +1 (415) 723-6740 
Distributed Computing Operations   |    Stanford, CA 94305-3090
Stanford University                |    schemers@Slapshot.Stanford.EDU 


  parent reply	other threads:[~1994-05-02 20:17 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1994-05-02 15:36 load average from C Stefan Monnier
1994-05-02 20:13 ` Nick Doulas
1994-05-02 20:17 ` Roland Schemers [this message]
1994-05-07 11:21   ` Anthony Baxter
1994-05-09 14:35     ` Brian P. Minnebo
read-only archive

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox