util-linux.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Sami Kerola <kerolasa@iki.fi>
To: Konstantin Khlebnikov <khlebnikov@yandex-team.ru>
Cc: util-linux <util-linux@vger.kernel.org>
Subject: Re: [PATCH] dmesg: add --follow-new
Date: Sun, 31 May 2020 12:49:20 +0100	[thread overview]
Message-ID: <CAG27Bk3Tvybn0ToQdBNu9O-=Ap70+APKqLCCT-4cTxx-vFiFqw@mail.gmail.com> (raw)
In-Reply-To: <159084767331.127122.9117317049390963928.stgit@buzz>

On Sat, 30 May 2020 at 15:08, Konstantin Khlebnikov
<khlebnikov@yandex-team.ru> wrote:
> Option --follow-new (-W) works the same as --follow (-w) but initially
> seeks to the end of kernel ring buffer, so it prints only new messages.
> Useful for capturing kernel messages during actions without past log.

Hello Konstantin,

I wonder if it would be more useful to add '-n, --lines=[+]NUM' that
would be similar
to tail(1) option and argument. The --follow-new with an option that
lists NUM last
messages would be --lines=0

That said should --since and --until options similar to journalctl(1)
be considered
as well?

-- 
Sami Kerola
http://www.iki.fi/kerolasa/

  reply	other threads:[~2020-05-31 11:49 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-05-30 14:07 [PATCH] dmesg: add --follow-new Konstantin Khlebnikov
2020-05-31 11:49 ` Sami Kerola [this message]
2020-05-31 12:18   ` Konstantin Khlebnikov
2020-06-01  7:53     ` Karel Zak
2020-06-01  7:56 ` Karel Zak

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='CAG27Bk3Tvybn0ToQdBNu9O-=Ap70+APKqLCCT-4cTxx-vFiFqw@mail.gmail.com' \
    --to=kerolasa@iki.fi \
    --cc=kerolasa@gmail.com \
    --cc=khlebnikov@yandex-team.ru \
    --cc=util-linux@vger.kernel.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).