On Wed, Sep 12, 2001 at 04:01:12PM -0700, Mike Egglestone wrote: > 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. >
"tail -f access.log" should do the trick. Check the man page for more. hth, kent -- "The significant problems we face cannot be solved at the same level of thinking we were at when we created them." --Albert Einstein