Measuring Apache bandwidth from a bash script

So reason : double checking Sawmill and AWstats.

(sawmill won..)

echo “$(awk ‘{print $10}’ prd.logs | grep -v “-” | paste -sd + – | bc )/1024/1024/1024″ | bc

result is in GB.

nJoy;

 

Leave a Reply

Your email address will not be published. Required fields are marked *