The Unix Heritage Society mailing list
 help / color / mirror / Atom feed
From: John Cowan <>
To: John Cowan <>,
	The Eunuchs Hysterical Society <>
Subject: Re: [TUHS] Binary log files
Date: Mon, 5 Jul 2021 11:12:05 -0400
Message-ID: <> (raw)
In-Reply-To: <>

[-- Attachment #1: Type: text/plain, Size: 946 bytes --]

On Mon, Jul 5, 2021 at 9:42 AM Steffen Nurpmeso <> wrote:

And how did you handle it?

The simplest way to truncate the file is with truncate or just ">file",
since writes are small enough to be atomic.  The sa utility, which also
goes back to v7, will summarize process accounting data and write it to a
different file; it can then report on either unsummarized data or
summarized data before unsummarized data).  Unfortunately Linux has broken
the wtmp/utmp convention of "no logfile, no logging", so a cron job to
truncate wtmp is your only man.

John Cowan
Original line from The Warrior's Apprentice by Lois McMaster Bujold:
"Only on Barrayar would pulling a loaded needler start a stampede toward
English-to-Russian-to-English mangling thereof: "Only on Barrayar you risk
lose support instead of finding it when you threat with the charged weapon."

[-- Attachment #2: Type: text/html, Size: 1971 bytes --]

  reply	other threads:[~2021-07-05 15:12 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-07-05  2:53 John Cowan
2021-07-05 13:41 ` Steffen Nurpmeso
2021-07-05 15:12   ` John Cowan [this message]
2021-07-05 19:25     ` Steffen Nurpmeso
2021-07-05 20:26 Norman Wilson

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='' \ \ \

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link

The Unix Heritage Society mailing list

This inbox may be cloned and mirrored by anyone:

	git clone --mirror

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V1 tuhs tuhs/ \
	public-inbox-index tuhs

Example config snippet for mirrors.
Newsgroup available over NNTP:

AGPL code for this site: git clone