[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]
RE: Basic Dumb Logging Question
- From: "Cowles, Steve" <steve stevecowles com>
- To: "'redhat-list redhat com'" <redhat-list redhat com>
- Subject: RE: Basic Dumb Logging Question
- Date: Thu Jul 31 09:44:27 2003
David Hart wrote:
> Suppose, for testing purposes, that I want to display my httpd access
> and error logs, on the screen, updating in real time. Is there a way
> to do this?
>
I keep terminal windows like this open 24x7. Another alternative to the -f
option of the tail command (to compensate for when logrotate kicks in), is
to use the --follow option.
tail --follow=name /var/log/messages
Now when logrotate moves the messages file to messages.1 and restarts
syslogd, tail will automatically follow (re-open) the new messages file and
continue output.
Steve Cowles
[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]