2 ms·
geeky nitpick -- do not use `while [ true ]; do ..` It's not doing what you think; `true` here is just a non-zero length string. `while [ false ]; do ..` does
by emmelaich 7y ago
geeky nitpick -- do not use `while [ true ]; do ..`
It's not doing what you think; `true` here is just a non-zero length string. `while [ false ]; do ..` does the exact same thing!
Use `while true; do ...`. Or better `while :; do ...`
Even better, depending on the context, is
while sudo sudo /opt/vc/bin/vcgencmd measure_temp; do
sleep 2
done
PS. why two sudos?