
ok, suppose to clean the log I simply add with crontab -e the line 00 02 * * * mv /var/log/mylogname /var/log/mylogbakup will this do the job of giving me a clean mylogname (the program creates it if its missing just fine) as when I type this at console I am asked if I wish to overwrite the file, will i need to add a "do it no matter what" type of parameter to the mv or will it work without it?
In short, the easiest thing for you to do, if you want your script run daily, is to drop it in /etc/cron.daily. if it needs custom runtimes, put them in /etc/cron.d/ in a crontab file.
help?
YES !!!!! :-) ------------ WLUG - The Waikato Linux Users Group WWW: http://wlug.linuxcare.co.nz To unsubscribe, send an email to majordomo(a)list.waikato.ac.nz with "unsubscribe wlug" in the body of the message.
participants (1)
-
Gavin Denby