NetBSD-Users archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: Getting load average non-interactively



On Tue, Mar 06, 2012 at 08:11:22PM +0530, Mayuresh wrote:
> I see two utilities, top and sysstat that show the information related to
> system load.
> 
> I'd like to poll the load average non interactively (possibly to alert me
> if a big build has got stuck).
> 
> I could get it by fooling top by overriding TERM variable and then
> extracting info, something like
> TERM="" top 2>/dev/null | head -1
> 
> What is a good way to achieve this on NetBSD?

uptime(1)


-- 
Nicolas Joly

Projects and Developments in Bioinformatics
Institut Pasteur, Paris.


Home | Main Index | Thread Index | Old Index