The installation is very easy. First, you need to download the file below: checkTemp.sh. To complet this task, open a terminal an execute this command:
wget https://gist.github.com/Angelmmiguel/e13fed981e91bf6a298c/raw/0c33849753f17bd3b70d3aa2a4cfc06e05abafb3/checktemp.sh
The second step is to copy this file to the Crontab folder (Crontab is an application to schedule scripts in Unix systems):
sudo cp checktemp.sh /etc/cron.d/
The last step is to initialize the crontab task. You must open the crontab file to save the task with this command:
sudo crontab -e
We need to use sudo because the command shutdown needs root privileges. When the file is open, go to the bottom and, after the comments (# lines), and write this line:
*/5 * * * * /etc/cron.d/checktemp.sh
This task will execute checkTemp every 5 minutes. More info about schedule time options in this nice post :)