Articles Comments

{ Berbagi, Menulis, Dan Mengajar } Ilmu… » 7. Operating System » Installasi SARG di Debian

Installasi SARG di Debian

Install SARG kaya biasanya…

lalu tambahkan script ini :

 

#!/bin/bash

TODAY=$(date –date “today” +%d/%m/%y)
# Get yesterday’s date
YESTERDAY=$(date –date “yesterday” +%d/%m/%Y)

exec /usr/bin/sarg \
-f /var/log/squid/access.log
#-o /var/www/html/daily \
-o /var/www/html/squid-reports \
-d $YESTERDAY > /dev/null 2>&1

exit 0

Filed under: 7. Operating System

Leave a Reply

*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>