Rosemary,Now, as far as the scanning drives, you may want to put the script
that does that in /etc/cron.daily, instead of using "crontab -e" to
have it run as a root cron job.
I don't what I am doing wrong but I can't get to manage to edit the cron.daily. It tells me it is a directory. I go 'cd /etc' then 'vi cron.daily', and get a list of things under "= /etc/cron.daily" in orange colour: ie '../' in blue, then 'logrotate, msec' and so on in white.
When I press 'i' for insert, or 'o' for a new line, a list of times and dates pops up beside the logrotate msec type entries. Clearly my process is incorrect.
Rosemary
/etc/cron.daily is a directory where you put the scripts that you want cron to run every day. As long as the script is marked executable, cron will try to run it once a day. The time it runs is controlled by /etc/crontab. There are also directories for hourly, weekly, and monthly cron jobs.
The advantage of having the directory, with individual jobs, instead of one big file, is that a package that needs a cron job run can just add a file to the directory when it is installed, update it if necessary when the package is updated, and remove it if the package is removed.
The other advantage is that if I add my own system cron job, I can turn it off by changing the file permissions so that it is no longer executable, and the file is still there waiting for me when I want to turn it back on. This can be handy for things like a daily cron job that you want to turn off while you are on vacation, and then turn back on...
Mikkel --
Do not meddle in the affairs of dragons, for you are crunchy and taste good with Ketchup!
____________________________________________________ Want to buy your Pack or Services from MandrakeSoft? Go to http://www.mandrakestore.com Join the Club : http://www.mandrakeclub.com ____________________________________________________
