Email address obfuscation in effect -- please
click here to turn it off.
[
Date Prev][
Date Next][
Thread Prev][
Thread Next][
Date Index][
Thread Index]
Is follow used to check changes since the last time you tailed it?
I tried it out, and it seemed to display a running log until I ctrl+c'd it.
I guess you could do "tail error_log -n 1 -f" in one shell window and watch
the errors stack up. I do this with ultraedit on my winbox, it asks to
refresh the file when I go back to look at my code, updating the display of
errors. Of course, this only works because the server is indigo_perl and
running on the winbox.
<tfm>
-f, --follow[={name|descriptor}] output appended data as the file grows;
-f, --follow, and --follow=descriptor are
equivalent
-n, --lines=N output the last N lines, instead of the last 10
--max-unchanged-stats=N
with --follow=name, reopen a FILE which has not
changed size after N (default 5) iterations
to see if it has been unlinked or renamed
(this is the usual case of rotated log files)
</tfm>
> -----Original Message-----
> From: Mark Rages [mailto:EMAIL:PROTECTED]
> Sent: Wednesday, September 04, 2002 2:59 PM
> To: EMAIL:PROTECTED
> Subject: Re: [MLUG] tail command & scripting
>
>
> On Wed, Sep 04, 2002 at 02:54:58PM -0500, Ross, Matt wrote:
> > I'm sure many are familiar with this command, but being
> still a newbie in
> > many areas, I just found out about it today. With its
> obvious use in
> > reading error logs, I find it hard to believe I haven't
> seen it in manuals
> > or scripting guides before. If you are like me, and
> haven't found out about
> > this command, it reads the last 10 lines of a file and
> outputs them for you.
> > You can -n a different range if you need more (or less?) of
> the file also,
> > making this ideal for debugging. Before I had been
> grep'ing what I needed
> > by assumed timestamp or filename.
> >
>
> Oh, the most important option for tail is -f (follow).
>
> Regards,
> Mark
> --
> To unsubscribe, go to http://mlug.missouri.edu/members/edit.php
>
> Archives are available at http://mlug.missouri.edu/list-archives/
>
--
To unsubscribe, go to http://mlug.missouri.edu/members/edit.php
Archives are available at http://mlug.missouri.edu/list-archives/