[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[ale] perl question
- Subject: [ale] perl question
- From: djinn at djinnspace.com (djinn at djinnspace.com)
- Date: Thu, 05 Jul 2001 08:45:45 -0400
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.