jueves, 30 de abril de 2009

report_oct-stream

#!/bin/bash

# 39 23   * * *   root    /usr/local/scripts/report_oct-stream

logdir="/var/log/squid/"


fecha=`date +"%y-%m-%d"`

cat /var/log/squid/access.log|grep "octet-stream" >> ${logdir}${fecha}_oct.log

No hay comentarios: