Gossamer Forum
Home : General : Perl Programming :

Re: [Paul] Getting hits

Quote Reply
Re: [Paul] Getting hits In reply to
Yes you are correct I could do that. Could you give me a couple of lines on how to do it. This is what I have so far

system("ls /var/log/apache/access* > found");
open (INF, "found");
@grok = <INF>;
close(INF);

foreach $i (@grok) {
$i =~ s/.*[\/\\](.*)/$1/;
}

Now I got to figure out a loop that will open up a file and count for each domain.
Subject Author Views Date
Thread Getting hits constantm 5661 Jun 26, 2002, 7:19 AM
Thread Re: [constantm] Getting hits
Paul 5502 Jun 26, 2002, 7:22 AM
Thread Re: [Paul] Getting hits
constantm 5501 Jun 26, 2002, 8:03 AM
Thread Re: [constantm] Getting hits
constantm 5525 Jun 26, 2002, 8:11 AM
Thread Re: [constantm] Getting hits
Paul 5543 Jun 26, 2002, 8:22 AM
Thread Re: [Paul] Getting hits
constantm 5503 Jun 26, 2002, 8:47 AM
Thread Re: [constantm] Getting hits
Paul 5529 Jun 26, 2002, 8:59 AM
Thread Re: [Paul] Getting hits
constantm 5487 Jun 26, 2002, 10:14 AM
Thread Re: [constantm] Getting hits
Paul 5492 Jun 26, 2002, 10:23 AM
Post Re: [Paul] Getting hits
oldmoney 5459 Jun 28, 2002, 5:27 AM