NetBSD-Users archive

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

Re: Getting load average non-interactively



Hi,

From: Mayuresh <mayuresh%acm.org@localhost>, Date: Tue, 6 Mar 2012 20:11:22 
+0530

> 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?

How about "uptime" command?

-- 
Ryo ONODERA (小野寺 龍) <ryo_on%yk.rim.or.jp@localhost>

-- 
Ryo ONODERA // ryo_on%yk.rim.or.jp@localhost
PGP fingerprint = 82A2 DC91 76E0 A10A 8ABB  FD1B F404 27FA C7D1 15F3



Home | Main Index | Thread Index | Old Index