Does anybody know how to use this line in a python script? Tested code: import os cmd = '/opt/vc/bin/vcgencmd measure_temp' line = os.popen(cmd).readline().strip() if "error" in line: print "Error ... is your firmware uptodate? Run rpi-update" else: # line now contains something like: temp=41.2'C #...