From: Fergal Daly (fergal at domain esatclear.ie)
Date: Sun 09 Jul 2000 - 16:29:57 IST
At 16:19 09/07/00, kevin lyda wrote:
> > AFAIK, you'll be able to cp the file without probs but the *real* issue
> > here is how to truncate the file once it's been copied. I presume you
> > want to trim the log file after copying it. Don't know how to do it
> > though.
>DO NOT USE cp WITH LOG FILES. ONLY use mv, only use it on the same
>partition and then touch the new log files. better still there exist
>log rotation programs that you should use instead. some services
>might need a HUP signal (kill -1) to restart logging.
>again, look at log rotation programs. using cp on a log file can lose
>some of your logs.
Too right, except the original question wasn't about how to rotate, it was
about analysing a part of the current logfile without disturbing the server
and presumably the already existing rotation scheme. So while the suggested
use of cp and truncate above is a really bad idea, using cp to solve the
original problem is ok,
This archive was generated by hypermail 2.1.6 : Thu 06 Feb 2003 - 13:06:49 GMT