Start a cron job to call the script(s) with the following command:
sudo crontab -e
And enter the following text.
* * * * * /home/pool-user/checkBlockHeight.sh
* * * * * /home/pool-user/sendMyTip.sh
0 * * * * sync; echo 3 > /proc/sys/vm/drop_caches
sendMyTip.sh can be found here
Ensure the job is running with:
crontab -l