You need to place the script (or a link to it) in /etc/cron.daily.
Then have a look at /etc/crontab, and see what time the scripts in cron.daily are being executed. The first number on the line is Minutes, the second number is hours. If the numbers are not convienient (by default it is 4am I think), change them.
Next run ps -x, and see if crond is running. If it is, then your are set to go. Write your script, and place it in /etc/cron.daily, and it will automatically run at the set time each day. The output will be mailed to root.
I hope this helps
--Ian
|