Subject: Re: how to determine the number of processors
To: Klaus Heinz <k.heinz.mai.vier@onlinehome.de>
From: Georg Schwarz <geos@epost.de>
List: tech-pkg
Date: 05/31/2004 11:05:43
> I would like to know how to determine the number of processors under the
> different supported operating systems:
> 
> IRIX5:

The best I could come up with is

ps -e | grep "^ *[0-9]" | wc -l

grep could be replaced by ${GREP}.
All grep, ps, and wc are in /sbin/, in case you prefer absolute paths.

The above should more or less work on all sysV systems.



-- 
Georg Schwarz    http://home.pages.de/~schwarz/
 geos@epost.de     +49 177 8811442