[ Thanks to Mike
Golvach for this link. ]
“On my way to scripting myself out of a figurative
paper bag, I ran across a few other solutions to my problem
involving c structures in the proc filesystem that could get you
the very information I was looking for, but I wasn’t looking to
re-invent the wheel, either. Generally, if something exists on your
Unix or Linux system (at the lower levels) it’s been implemented in
a tool. Sometimes finding that tool can be a challenge. Sometimes
it’s easy. Sometimes, I’ll fret for hours wondering why simple
things sometimes seem so complicated. Then I wake up the next
morning and realize what a tool I was being 😉“And I’ve always been hyper-aware of how
more-and-more-ridiculous our society has become over the last few
decades. I see my fair share of panic attacks and what look like
suicides-in-the-making all around me. Back when I was a kid, you’d
only see that sort of behaviour in unrepentant alcoholics and good
hard-working folk who’d either gotten scammed out of (or somehow,
otherwise, managed to lose) their entire life’s savings.”