Hi.
Can someone guide me to the right direction?
I want to make an application that just extracts the cpu speed, and vendorname from the file /proc/cpuinfo.
My current distro is Ubuntu 8.10 desktop.
Regards
Printable View
Hi.
Can someone guide me to the right direction?
I want to make an application that just extracts the cpu speed, and vendorname from the file /proc/cpuinfo.
My current distro is Ubuntu 8.10 desktop.
Regards
cat /proc/cpuinfo
Read the file to see how the information you want is stored.
Write a program to parse the file.
And what exactly are you having problems with?
Somebody already did that:
egrep ("processor|cpu MHz|vendor_id") /proc/cpuinfo
I threw "processor" in since that is the processor number; if you have more than one this info prints out for each, eg:
Code:processor : 0
vendor_id : GenuineIntel
cpu MHz : 2200.074
processor : 1
vendor_id : GenuineIntel
cpu MHz : 2200.074
Yes, now we're getting somewhere .
I've got some ideas.
Thank you all!
N