Re: novice query
Jesus Calle, Ext 1081 (jesus@coms.indra-ssi.es)
Mon, 16 Dec 1996 14:02:20 -0800
Charles Powne wrote:
> the problem is - and this is probably
> really obvious for the savvy folks reading
> this tale of woe - my ISP feels it is
> neccessary to gzip the access_log file
> at the end of each day.
>
> ls -lg access_log*
> -rw-r--r-- 1 www www 46240 Dec 14 00:56 access_log.0
> -rw-r--r-- 1 www www 6321 Dec 14 01:31 access_log.1.gz
>'/home/www/vs/httpd.soleilmoon/logs/OLD/access_log(.(*.(gz)))';
The problem is not regular expressions in Perl.
Simply: in the way wwwstat open the log file you CANNOT open several files.
see the manual or the subroutine process_file in wwwstat to see the way
Fielding do it.
I think you cannot open several files with the open function in Perl, that is
the one used in wwwstat, and worse with regular expressions.
Regular expressions works in the parts of code that are coded to work with
them, not in any part.
I would do a different script similar to :
decompress the files, do a cat or similar to a single file, and use this to
feed wwwstat.
in "free shell" (Better if you do a Perl Script):
gzip -d access_log* >access_log
wwwstat -options access_log
Ok, I tried to help, but I am not a guru on Perl.
Sorry for the errors.
--
Saludos,
--------------------------------------------------
Jesus Calle Vaquero
Dpto. Comunicaciones
INDRA SSI c/Velazquez 132, Planta 2, Madrid
Tfno: (+34) 1 3481258
e-mail: jesus@coms.indra-ssi.es
--------------------------------------------------