* Rob Asher <rasher@xxxxxxxxxxxxxxxxxxx>: > Here's something similar to what you're already doing except comparing to a file of "badwords" to look for in the URL's and then emailing you the results. > > #!/bin/sh > # filter.sh > # > cd /path/to/filterscript > cat /var/log/squid/access.log | grep -if /path/to/filterscript/badwords > hits.out Useless use of cat: grep -if /path/to/filterscript/badwords /var/log/squid/access.log > hits.out > /path/to/filterscript/wordfilter.gawk hits.out > > cat /path/to/filterscript/word-report | /bin/mail -s "URL Filter Report" you@xxxxxxxxxxxxxx Useless use of cat: /bin/mail -s "URL Filter Report" you@xxxxxxxxxxxxxx < /path/to/filterscript/word-report Personally, I use "awk" to check for jpg/jpeg files exceeding a certain size. I think the two approaches can be combined :) -- Ralf Hildebrandt (i.A. des IT-Zentrums) Ralf.Hildebrandt@xxxxxxxxxx Charite - Universitätsmedizin Berlin Tel. +49 (0)30-450 570-155 Gemeinsame Einrichtung von FU- und HU-Berlin Fax. +49 (0)30-450 570-962 IT-Zentrum Standort CBF send no mail to snickebo@xxxxxxxxxx