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


-- 
redhat-list mailing list
unsubscribe mailto:[EMAIL PROTECTED]
https://www.redhat.com/mailman/listinfo/redhat-list

Reply via email to