[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: number of processors
From: |
Andreas Schwab |
Subject: |
Re: number of processors |
Date: |
Tue, 27 Aug 2002 21:42:49 +0200 |
User-agent: |
Gnus/5.090007 (Oort Gnus v0.07) Emacs/21.3.50 (ia64-suse-linux) |
Philip Willoughby <address@hidden> writes:
|> Today, Philipp Gortan wrote:
|>
|> >case "$MACHTYPE" in
|> >~ i686-*-linux) test -f /proc/cpuinfo && \
|> > PROC_NR=`grep processor /proc/cpuinfo | \
|> > wc -l | awk '{print $1}'`
|> > ;;
|>
|> This should work for *-*-linux* not just i686s.
$ grep processor /proc/cpuinfo
$ uname -a
Linux eta 2.4.18-SMP #1 SMP Tue Mar 5 11:48:27 GMT 2002 alpha unknown
Andreas.
--
Andreas Schwab, SuSE Labs, address@hidden
SuSE Linux AG, Deutschherrnstr. 15-19, D-90429 Nürnberg
Key fingerprint = 58CA 54C7 6D53 942B 1756 01D3 44D5 214B 8276 4ED5
"And now for something completely different."