[ale] perl question

djinn at djinnspace.com djinn at djinnspace.com
Thu Jul 5 08:45:45 EDT 2001


Errrrr...what kind of log files?  How much perl do you know?   What sort of
output are you looking for??

I'd start with  www.perl.org and

--------------------------------
#!/usr/bin/perl

open(FILE, "logfile.log");
open(OUT, ">output.file");

while (<FILE>) {
   if (/regex here/) {
      print OUT "results of regex";
   }
}

close(FILE);
close(OUT);
--------------------------------

:)
jenn

Ken Nagorski wrote:

> Hi there,
>
> If I wanted to write somehting that checked log files in perl anyone know
> where I could start out? I just want to read a log and report stats of
> IP's accessing the server...
>
> Thanks
> Ken
>
> --
>

--
To unsubscribe: mail majordomo at ale.org with "unsubscribe ale" in message body.





More information about the Ale mailing list