You need to configure cornjob to run your shell script. A sample shell script:
Code:
#!/bin/sh
# add other logic and final command
mail -s 'Subject' somewhere@domain.com < /tmp/logmessage.txt
Setup a cron job:
Add job
Code:
13 0 * * * /path/to/script.sh >/dev/null 2>&1
See cronjob faq for more info
http://www.cyberciti.biz/faq/how-do-...-or-unix-oses/