Hi, I was wondering if someone could help me with this question:
I'm trying to create a sort of filter that will check my apache logfile to see if certain pages in a directory have been accessed lately. All other files in the directory should be deleted.
I'm letting people create pages on my server and all pages that have not been accessed for a certain time (twice daily), should be deleted from the directory.
I was thinking about grepping the logfile(s) and comparing the outcome with a list from the directory. Everything that is not in the logfile for that directory should be deleted (except for 2 pages that let people create the pages - these 2 will probably not be accessed daily).
Can someone give me a start with this script, as I'm still a newbie with Linux?
Thanks,
Meert