The Unix Heritage Society mailing list
 help / color / mirror / Atom feed
From: John Cowan <cowan@ccil.org>
To: John Cowan <cowan@ccil.org>,
	The Eunuchs Hysterical Society <tuhs@tuhs.org>
Subject: Re: [TUHS] Binary log files
Date: Mon, 5 Jul 2021 11:12:05 -0400	[thread overview]
Message-ID: <CAD2gp_RLYVFx8CK6PAiSrPV8BvSrYHGiB2WPxQGJO=Bh-x3nRA@mail.gmail.com> (raw)
In-Reply-To: <20210705134159.jR0uH%steffen@sdaoden.eu>

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

On Mon, Jul 5, 2021 at 9:42 AM Steffen Nurpmeso <steffen@sdaoden.eu> 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          http://vrici.lojban.org/~cowan        cowan@ccil.org
Original line from The Warrior's Apprentice by Lois McMaster Bujold:
"Only on Barrayar would pulling a loaded needler start a stampede toward
one."
English-to-Russian-to-English mangling thereof: "Only on Barrayar you risk
to
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:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

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

  git send-email \
    --in-reply-to='CAD2gp_RLYVFx8CK6PAiSrPV8BvSrYHGiB2WPxQGJO=Bh-x3nRA@mail.gmail.com' \
    --to=cowan@ccil.org \
    --cc=tuhs@tuhs.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).