MajorHertz
Baseband Member
- Messages
- 32
I'm running FC2 and have it running, in addition to many other things, my proxy server. It has DansGuardian running on top of squid. I know how to do the basic cronjobs and stuff but what I want to do is set at 11:58 each night to go to a logfile (access.log), grep it for the word "DENIED" and put those results in a text file named the date (i.e. mm.dd.yyyy). Right now I do it my hand by
grep DENIED access.log > mm.dd.yyyy
>access.log
where mm.dd.yyyy is 12.10.2005, etc. but want to automate this. How do I get it to automatically put in that day's date then run those commands?
grep DENIED access.log > mm.dd.yyyy
>access.log
where mm.dd.yyyy is 12.10.2005, etc. but want to automate this. How do I get it to automatically put in that day's date then run those commands?