sg

Salı, Ocak 17, 2006

[lug] Re: Linux command to over write a file with an empty file.



On 1/17/06, Mirko <mkapps@gmx.net> wrote:


jdhog schrieb:

> Is there a linux command which will allow me to truncate or over write
> a file to get rid of the original files contents and make it an empty
> file?  My situation is that I have a log file that is growing extremely
> fast.  When it gets to large, the file script that is writing to the
> file crashes.

What's about the logrotate service, which is part of apache


I would agree, log rotate is really what you want. You really don't want to overwrite a log that you may need in a day or so.

--
Jeremiah E. Bess
Network Ninja, Penguin Geek, Father of twins

0 Comments:

Yorum Gönder

<< Home


Komik Videolar   islam  şarkı sözleri  yemek tarifleri  gelibolu  huzur   sağlık