sudo crontab -e
Add this line: */5 * * * * cd /location_of_repo && ./motd.sh
*/5 * * * * cd /location_of_repo && ./motd.sh