Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- def getserial():
- # Extract serial from cpuinfo file
- cpuserial = "0000000000000000"
- try:
- f = open('/proc/cpuinfo','r')
- for line in f:
- if line[0:6]=='Serial':
- cpuserial = line[10:26]
- f.close()
- print(getserial())
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement