Ansgar Burchardt (27/01/2011):
> Reuben Thomas writes:
> > Can this be done? It’s pretty easy, after all:
> >
> > grep processor /proc/cpuinfo | wc -l
Spare pipes! grep -c ^processor /proc/cpuinfo
> That is not portable. For example on armel (agricola.d.o) this gives:
>
> $ grep processor /p
Reuben Thomas 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 wh
Package: at
Version: 3.1.12-1ubuntu2
Severity: normal
Can this be done? It’s pretty easy, after all:
grep processor /proc/cpuinfo | wc -l
gives the number of CPUs.
I can’t find an init script in at’s git repo so no patch, sorry.
-- System Information:
Debian Release: squeeze/sid
APT prefers
3 matches
Mail list logo