or download this
krun: run command within temperature window
The command:
...
will run the subcommand 'make test' while monitoring CPU temperatures;
if at any point the temperature goes above 80C, the subcommand (proces
+s
group) will be suspended until it falls below 60C, then allowed to res
+ume.