The size of my Apache access_log
file is getting out of hand. So I've decided to write a script which runs every 24 hours that just removes it, I know it would have to run a command similar to.
rm /var/log/httpd/access_log-2*
I know this is a bit of a stupid question, but how would I write the script?
What file would I put it inside of and how would I make it so it automatically ran every 24 hours?