Usenet comp.unix.osf.osf1 (1992-2004)
 help / color / mirror / Atom feed
From: Brian Martin <icbkr@ix.netcom.com>
Subject: Re: S: trimming of binary.errlog
Date: 1996/08/30	[thread overview]
Message-ID: <322725C1.2008@ix.netcom.com> (raw)
In-Reply-To: 506o8s$22v@jungle.toppoint.de


Hendrik Roepcke wrote:

> i see this binary.errlog growing... but how to
> trim it without disturbing uerf in analysing it?

This is what I've got set up.  Works fine, and you
can modify it to track stuff for as long as you want.
Set it up in cron to run every night.  There should
already be a syslog entry in there.  Put this one
after that one.

crontab: 45 2 * * * /Scripts/binlog.trim

File:

# binlog.trim - trim the binlog entries
cp /usr/adm/binary.errlog /usr/adm/binary.errlog.yesterday
rm /usr/adm/binary.errlog
touch /usr/adm/binary.errlog
# restart the system
kill -HUP `cat /var/run/binlogd.pid`

Note: this is on an OSF system

bmartin



      reply	other threads:[~1996-08-30  4:00 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1996-08-30  4:00 S: trimming of binary.errlog Hendrik Roepcke
1996-08-30  4:00 ` Brian Martin [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