From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on inbox.vuxu.org X-Spam-Level: X-Spam-Status: No, score=-1.0 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, HTML_MESSAGE,MAILING_LIST_MULTI,RCVD_IN_DNSWL_NONE autolearn=ham autolearn_force=no version=3.4.4 Received: (qmail 31512 invoked from network); 5 Jul 2021 15:12:33 -0000 Received: from minnie.tuhs.org (45.79.103.53) by inbox.vuxu.org with ESMTPUTF8; 5 Jul 2021 15:12:33 -0000 Received: by minnie.tuhs.org (Postfix, from userid 112) id 5722A9CA41; Tue, 6 Jul 2021 01:12:31 +1000 (AEST) Received: from minnie.tuhs.org (localhost [127.0.0.1]) by minnie.tuhs.org (Postfix) with ESMTP id 10DC99C9F1; Tue, 6 Jul 2021 01:12:19 +1000 (AEST) Authentication-Results: minnie.tuhs.org; dkim=pass (2048-bit key; unprotected) header.d=ccil-org.20150623.gappssmtp.com header.i=@ccil-org.20150623.gappssmtp.com header.b="apGTzmdW"; dkim-atps=neutral Received: by minnie.tuhs.org (Postfix, from userid 112) id 2CA5A9C9F1; Tue, 6 Jul 2021 01:12:18 +1000 (AEST) Received: from mail-qk1-f171.google.com (mail-qk1-f171.google.com [209.85.222.171]) by minnie.tuhs.org (Postfix) with ESMTPS id 3C47A9C9F0 for ; Tue, 6 Jul 2021 01:12:17 +1000 (AEST) Received: by mail-qk1-f171.google.com with SMTP id j13so17227949qka.8 for ; Mon, 05 Jul 2021 08:12:17 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ccil-org.20150623.gappssmtp.com; s=20150623; h=mime-version:references:in-reply-to:from:date:message-id:subject:to; bh=oW7ebGxLQ584glUYrfC3aPmXboVXTqu3WHtv/XEC07U=; b=apGTzmdWdbZSdZ8TZo5vFi+mVX7YYUcuOUQZFTCzFkfB4pZEoGpI/ahIKU8GpO4mJK Oy9mQJwNKDoijkd5ghrSTqXoVK77wiWHmjoOu03l7VMRSaKjwoYKrXlfNuGopyBhsNz+ uFDki1DY5GJeoY8NpMTjp78u7BC0xawy7O0tVCaDsNwE+QtKj2xTprYPN+/IUKMychD9 2RDpnU1TrRRGV2Xg//NfW4A6Y/4bGj8ofwuXt4nZRV7RVc+407qQOS5nBZle3lqI0uN/ vgNKYlDy+fe8a36NYmwcULUDoghUrzx52AmUyBqnr9Iz/PngrTyQ76Oa7BAcyanHKz4N vQyw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to; bh=oW7ebGxLQ584glUYrfC3aPmXboVXTqu3WHtv/XEC07U=; b=p5rWo/9tnRERuqmZX2qNIDua8XvZOFZ4BLHQbA5CbPBH4NXr21N770udG003Jha/3+ KqXlpn0xvw/mQAqbgh6cKxEQEnYBv7rmCVuPJ5hAFNB3J2oVIGCRq/9aqBVOwu/jR1cv FzJ0r1/aut/YTx5ByYOsPrrn51xvkbJQa5wNTLipZ8lUgwIQaeL5iVg77ydJ1YJwITtf BiBlj/oopbiOxUkhm76RaT817tN4EuVHd+ALjhQCTr2JIp5gO/rDZEnoJXbXXR3Z/W76 612DVC69dhcX/NizZKxt6XmCm/bmiFKrLtI81QSGfTqJqibc1yTxvTOMQs0LfDgN1yYp D5ow== X-Gm-Message-State: AOAM53301xYLXMdSi5pXeXy7I1jiai2kw6vzDge/6wB6dkCXDEurun2I bgbCiIHJ10UJNQj5buvmjv683ppTtNYuCn9KozKL7Q== X-Google-Smtp-Source: ABdhPJyW6O+55RZ3B550HDs+1rBeFI8di6WddwKusYLGjXzrZcEAm0xmQ1JJUdI3/wkbkKWX1WmktAAqST+K/GHjOnw= X-Received: by 2002:a05:620a:1423:: with SMTP id k3mr14309272qkj.118.1625497936338; Mon, 05 Jul 2021 08:12:16 -0700 (PDT) MIME-Version: 1.0 References: <20210705134159.jR0uH%steffen@sdaoden.eu> In-Reply-To: <20210705134159.jR0uH%steffen@sdaoden.eu> From: John Cowan Date: Mon, 5 Jul 2021 11:12:05 -0400 Message-ID: To: John Cowan , The Eunuchs Hysterical Society Content-Type: multipart/alternative; boundary="000000000000142fb205c661bbcf" Subject: Re: [TUHS] Binary log files X-BeenThere: tuhs@minnie.tuhs.org X-Mailman-Version: 2.1.26 Precedence: list List-Id: The Unix Heritage Society mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: tuhs-bounces@minnie.tuhs.org Sender: "TUHS" --000000000000142fb205c661bbcf Content-Type: text/plain; charset="UTF-8" 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 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." --000000000000142fb205c661bbcf Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable


On Mon, Jul 5, 20= 21 at 9:42 AM Steffen Nurpmeso <st= effen@sdaoden.eu> wrote:
=
And how did you handle it?

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

John Cowan =C2=A0 =C2=A0 =C2= =A0 =C2=A0 =C2=A0http://vrici.lo= jban.org/~cowan =C2=A0 =C2=A0 =C2=A0 =C2=A0cowan@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 inste= ad of finding it when you threat with the charged weapon."

--000000000000142fb205c661bbcf--