What I would like is a script that will tail the access log of my web server for a given number seconds. Then I can run this script once an hour or at a given time to see how many pages are being loaded per second.
I tried using alarm to do something like this but it doesn't seem to work as I had hoped. Here's what I've tried so far.
Thanks, Aaron#!/usr/bin/perl open ACCESS, "|tail -f /var/log/apache/access.log"; eval{ alarm(10); while(<ACCESS>){ print; } }; close ACCESS;
In reply to Tailing the access log by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |