How to cut cleanly binary.errlog

From: Theis Jean-Marie 77-21 theis_at_pegase.cad.cea.fr <theis_at_pegase.cad.cea.fr>
Date: Thu, 16 Oct 1997 14:43:55 +0200

Hi all

As the /var/adm/binary.errlog of my systems grows very fat I need to
 reduce their size , but I do not want to loose the last events by using
 "cp /dev/null binary.errlog" .
"tail -1000 etc... " is neither good as the new file starts with a
corrupted entry ( fortunately dia or uerf can deal with it ).
Is there a clean way to do that ???

Tanks in advance for your help

-- 
===========================================================
Theis Jean-Marie : l'indien du placard
Tels : 7721 7527 4695
mail adress : theis_at_drfc.cad.cea.fr
===========================================================
Je passe le plus clair de mon temps à l'obscurcir.
				Boris Vian
===========================================================
Received on Thu Oct 16 1997 - 16:19:37 NZDT

This archive was generated by hypermail 2.4.0 : Wed Nov 08 2023 - 11:53:36 NZDT