HOWTO access Processor ID / other unique values??
Hi,
can anyone please tell me how to obtain a processor's unique ID (if such a thing exist, which I believe does)? Or maybe some other unique number such as the Harddrive's serialnumber or mother boards unique id something. I need it to copy-protect a program which is nearly ready for distribution. Any references to tutorials of related subjects would also be much appreciated. regards Kartheek |
cat /proc/cpuinfo
Does that give the info you want? |
no, i tried ther no luck
|
I don't have a CPU with an ID, so I wasn't sure if I was not seeing it in /proc/cpuinfo because it doesn't show it or because I don't have one, guess it's not there. If you are just looking for something unique, maybe try one of these:
hdparm -i /dev/hda: hard drive info ifconfig eth0: NIC's MAC address is unique, but easily spoofed look through the info files in /proc for something else unique |
thanx, i will try thoes.
but i found files called 'cpuid' [its orange colored and not openable by vi or cat ] in /dev/cpu/0 and another in/dev/cpu/1 and so on... any idea regarding thoes files. |
Google is the best Friend , u find lots of utility to know the processor id , try cpuid a utility for linxu
Hope this will solve ur problem Regards... Nayak Sibananda (Reliance Infocomm) |
All times are GMT -5. The time now is 09:29 PM. |