mathie's bits
$make = exec(“cat /proc/cpuinfo|grep ‘model name’|cut -d : -f 2|cut -c 2-“); $speed = exec(“cat /proc/cpuinfo|grep MHz|cut -d : -f 2|cut -c 2-“); $count = exec(“grep processor /proc/cpuinfo|wc|awk ‘{print $1}’”); $hyperthreaded = exec(“grep flags /proc/cpuinfo|grep ‘ ht’”);
Sample Output: Make: AMD Opteron(tm) Processor 244 Speed: 1792.558 Count: 2 Hyperthreaded: No
Posted
in
by
admin
Tags:
Your email address will not be published. Required fields are marked *
Comment *
Name *
Email *
Website
Δ
Leave a Reply