Using os to execute a program
Posted: Mon May 19, 2014 8:26 pm
Code: Select all
# Fetch Temperature Reading
x = os.system("/opt/vc/bin/vcgencmd measure_temp >/xyz/pi_cpu_temp.txt") why not just use
chmod 777+ vcgencmd
./vdgencmd measure_temp
That's the more common way i seen.