From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: fee84,b5aaee5eaec6b4a1,start X-Google-Attributes: gidfee84,public From: risler@genetique.uvsq.fr (J-L. Risler) Subject: Re: How to clear the binary errorlog file ??? Date: 1997/09/19 Message-ID: <5vu51t$t95$1@soleil.uvsq.fr>#1/1 X-Deja-AN: 273830890 References: Organization: C.N.R.S./U.V.S.Q Keywords: errorlog Newsgroups: comp.unix.osf.osf1 In article , kurt.pintoffl@joanneum.ac.at says... > >Hi all, >Would anyone please tell me an official way to set the binary errorlog >file to 0? >Is it ok to clear the file /usr/adm/binary.errlog, then touch the same >file and set the permissions to 640 for root:adm ? >If yes, how can I produce an entry just for testing (without doing a >reboot or hurting the system)??? > >Thanks for quick answers! > >Kurt > > Hi, I don't know whether this is "official" or not but what I do regularly is: cat /dev/null > xxx where xxx is any log file in /var/adm/...... This protects the correct permissions while zeroing the file. So far I encountered no problem. Cheers, -- ------------------------------- Jean-Loup RISLER risler@genetique.uvsq.fr Universite de Versailles 45 Avenue des Etats-Unis 78035 Versailles Cedex France -------------------------------