[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: little script for log watching



----- Original Message -----
From: "Mike Egglestone" <megglestone@heritage.sd57.bc.ca>
To: "Debian Mailing list" <debian-user@lists.debian.org>
Sent: Wednesday, September 12, 2001 7:01 PM
Subject: little script for log watching


> Hi,
>
> I would like to write a script that would
> output to the screen the latest contents of a log,
> and continue to do so until I abort the script.
>
> For example,
> I have squid running, and would like to see the latest additions
> to the /var/log/squid/access.log as it takes place.
>
> Something like typing the "tail" command over and over again or something.
>
> Is this possible?
> If its quite complicated, please point me to a nice script
> place on the web where I can learn about simple scripts.
>
> Thanks
> Mike
>
>


tail -f /var/log/squid/access.log

( f is for FOLLOW ) (I guess..)

ohh, the wonder of development :D

edward



Reply to: