2011年2月25日 星期五

script內判斷cpu數量

CPUs=$(echo `cat /proc/cpuinfo | grep processor | tail -1 | awk'{print $3}'` +1 | bc)

沒有留言: