View Single Post

  #2 (permalink)  
Old 01-25-2007, 01:19 AM
nixcraft's Avatar
nixcraft nixcraft is offline
Never say die
User
 
Join Date: Jan 2005
Location: BIOS
My distro: Ubuntu
Posts: 1,061
Rep Power: 10
nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute
Default

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:
Code:
crontab -e
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/
__________________
Vivek | My personal blog
Linux Evangelist
Play hard stay cool
Reply With Quote