Created
December 27, 2012 18:46
-
-
Save anonymous/4390797 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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