Usenet comp.unix.osf.osf1 (1992-2004)
 help / color / mirror / Atom feed
From: risler@genetique.uvsq.fr (J-L. Risler)
Subject: Re: How to clear the binary errorlog file ???
Date: 1997/09/19	[thread overview]
Message-ID: <5vu51t$t95$1@soleil.uvsq.fr> (raw)
In-Reply-To: kurt.pintoffl.99.000B3ADC@joanneum.ac.at


In article <kurt.pintoffl.99.000B3ADC@joanneum.ac.at>, 
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
-------------------------------




      reply	other threads:[~1997-09-19  4:00 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1997-09-19  4:00 How to clear the binary errorlog file ??? Kurt Pintoffl
1997-09-19  4:00 ` J-L. Risler [this message]
read-only archive

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox