simple shell script for running awstats

pll at lanminds.com pll at lanminds.com
Mon Jun 30 12:17:53 EDT 2003


In a message dated: 30 Jun 2003 11:18:39 EDT
Greg Rundlett said:

>#!/bin/bash
>
>for n in /var/log/httpd/www*.gz
>do
>  /path/to/my/cgi-bin/awstats.pl -config=www.buzgate.org -update
>-logfile=`gzip -d <$n |`
>  echo "processing $n"
>  sleep 3m
>done
>
>echo "All log files processed successfully."

Ahm, why are you doing:

	`gzip -d <$n |`

?

Why not `gzip -d $n |`

And what are you |'ing to ?  The following 'echo'?
-- 

Seeya,
Paul
--
Key fingerprint = 1660 FECC 5D21 D286 F853  E808 BB07 9239 53F1 28EE

	It may look like I'm just sitting here doing nothing,
   but I'm really actively waiting for all my problems to go away.

	 If you're not having fun, you're not doing it right!





More information about the gnhlug-discuss mailing list