#!/bin/bash # Purpose: fix permission + crontab setup # ------------------------------------------------------- # fix permission chmod +x /usr/local/bin/checkTemp.sh # fix crontab... #write out current crontab crontab -l > mycron #echo new cron into cron file echo "0/30 * * * * /usr/local/bin/checkTemp.sh" >> mycron #install new cron file crontab mycron rm mycron