Reuben Thomas <r...@sc3d.org> writes: > Can this be done? It’s pretty easy, after all: > > grep processor /proc/cpuinfo | wc -l > > gives the number of CPUs.
That is not portable. For example on armel (agricola.d.o) this gives: $ grep processor /proc/cpuinfo | wc -l 0 And there is also kfreebsd and Hurd which likely differ in what they provide in /proc as well. Regards, Ansgar -- To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org