Skip to content

Instantly share code, notes, and snippets.

Created December 27, 2012 18:46
Show Gist options
  • Save anonymous/4390797 to your computer and use it in GitHub Desktop.
Save anonymous/4390797 to your computer and use it in GitHub Desktop.
puts "Hallo, ich werde nun alle 10 Sekunden die Temperatur speichern"
var = 0
loop do
var = var + 1
puts var
fork do
exec("vcgencmd measure_temp >> temp.txt")
end
Process.wait
sleep(10)
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment