@gnomon@mastodon.social avatar

gnomon

@gnomon@mastodon.social

Robertson screwdriver owner, believer in the value of personal-scale computing and skeptic of the value of computing scales any larger than that

(previously https://twitter.com/gnomon ; account de-funked)

This profile is from a federated server and may be incomplete. For a complete list of posts, browse on the original instance.

loren , to random
@loren@flipping.rocks avatar

barns for the barn gods

gnomon ,
@gnomon@mastodon.social avatar

@loren SHEDS FOR THE SHED FIEND

cc: @godtributes

loren , to random
@loren@flipping.rocks avatar

Shrimp

gnomon ,
@gnomon@mastodon.social avatar

@loren shraaaaaaamp

kuba , (edited ) to random
@kuba@toot.kuba-orlik.name avatar

Ok so here's a linux question that's been bugging me for years.

I sometimes less to display/paginate a streaming stdout from another program. When I press END key on the keyboard, it brings me to the bottom of the stream, the latest data it has.

Then it says "Waiting for data... (^X or interrupt to abort)"

I want it to stop waiting for data and let me scroll up as it usually does when it's not waiting for data.

EDIT: Solved in

https://mastodon.social/@gnomon/112565743587893108

and

https://social.tchncs.de/@thomasmey/112565649508431258 🙏

gnomon ,
@gnomon@mastodon.social avatar

@kuba you're doing the right thing! Or at least you're doing what should produce the result you want according to the default configuration of less(1).

However you say you're invoking less "indirectly" with journalctl; do you mean you're running journalctl ... | less, or just running journalctl and letting it invoke less(1) itself as the default pager? If the latter, it's useful to know that systemd invokes less with some quite non-default options!

https://github.com/systemd/systemd/blob/main/src/shared/pager.c

1/2

gnomon ,
@gnomon@mastodon.social avatar

@kuba If you consult the systemd documentation and the entries for $SYSTEMD_PAGER and $SYSTEMD_LESS¹ you'll find mention of some mysterious less(1) options but not what they mean or why they matter; but if you peek at the doc source code² you'll find that the behaviour you're describing is controlled by the presence of "K" in the default $SYSTEMD_LESS var, and you can override that out with, e.g.:

SYSTEMD_LESS='FRXM' journalctl  

¹: https://www.freedesktop.org/software/systemd/man/latest/systemd.html#$SYSTEMD_PAGER

²: https://github.com/systemd/systemd/blob/60a20eff8007105c4a09ab34ebe318d5970e629a/man/common-variables.xml#L112-L155

gnomon ,
@gnomon@mastodon.social avatar

@kuba fantastic!! You're welcome! Thanks for giving me an opportunity to learn about this particular little stumbling block. I'll remember it for next time!!

loren , to random
@loren@flipping.rocks avatar

i think this is the first godzilla movie i've watched. i have a vague memory of one being on when i was kid but really just a flash of godzilla on the screen never like a full movie lmao

gnomon ,
@gnomon@mastodon.social avatar

@loren omg omg omg you have such a treat ahead of you

...when you watch the original one I mean, this one tonight is going to be disaster, I'm so happy you're here with us for this

loren , to random
@loren@flipping.rocks avatar

slurpent

gnomon ,
@gnomon@mastodon.social avatar

@loren slea slurpent?

loren , to random
@loren@flipping.rocks avatar

i heard rustling and a squeak outside. who could it be?

gnomon ,
@gnomon@mastodon.social avatar

@loren ITS THA POSS

loren , to random
@loren@flipping.rocks avatar

Space quails

gnomon ,
@gnomon@mastodon.social avatar

@loren quail pail

mhoye , to random
@mhoye@mastodon.social avatar

Indignant birb.

gnomon ,
@gnomon@mastodon.social avatar

@mhoye cc: @loren 👀↑↑ 🐦😐

loren , to random
@loren@flipping.rocks avatar

interview tomorrow. wish me luck or something?

gnomon ,
@gnomon@mastodon.social avatar

@loren good luck with the interview today!!

loren , to random
@loren@flipping.rocks avatar

blagh!

gnomon ,
@gnomon@mastodon.social avatar

@loren MOOD

loren , to random
@loren@flipping.rocks avatar

you're a smooth trunkfish

gnomon ,
@gnomon@mastodon.social avatar

@loren I'm a smooth shark

loren , to random
@loren@flipping.rocks avatar

Omg wtf??

gnomon ,
@gnomon@mastodon.social avatar

@loren WTF == White Tailed Fdeer?

loren , to random
@loren@flipping.rocks avatar

Flower squirrel

gnomon ,
@gnomon@mastodon.social avatar

@loren that squirrel is standing still therefore that squirrel is at imminent risk of BEING DUCKED

  • All
  • Subscribed
  • Moderated
  • Favorites
  • random
  • test
  • worldmews
  • mews
  • All magazines