#!/bin/bash # htop readings # 0.00001 = 100% delay=0.01; sensors ./heat.sh $delay sleep 45; pstree -p -s`pgrep -f heat.sh` if [[ $(pgrep heat.sh | wc -l) -gt 0 ]]; then pkill heat; fi;