From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: fee84,2637b4a4deec7ccd X-Google-Attributes: gidfee84,public From: Brian Martin Subject: Re: S: trimming of binary.errlog Date: 1996/08/30 Message-ID: <322725C1.2008@ix.netcom.com>#1/1 X-Deja-AN: 177522329 references: <506o8s$22v@jungle.toppoint.de> content-type: text/plain; charset=us-ascii organization: Lab Interlink mime-version: 1.0 newsgroups: comp.unix.osf.osf1 x-mailer: Mozilla 2.02Gold (Win95; I) 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