LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Bedrock Linux (https://www.linuxquestions.org/questions/bedrock-linux-118/)
-   -   Other-Software-Feature-Dreaming: htop, and what (https://www.linuxquestions.org/questions/bedrock-linux-118/other-software-feature-dreaming-htop-and-what-4175656652/)

Siljrath 06-30-2019 06:47 PM

Other-Software-Feature-Dreaming: htop, and what
 
would love to have a stratum column in htop.

https://github.com/hishamhm/htop looks daunting. idk where to start.

ParadigmComplex 06-30-2019 08:49 PM

Instead of adding a Bedrock specific column to htop's source requiring someone maintain a fork, perhaps attempt to upstream a feature to htop to support custom columns that can call out to some user-set shell command to populate. Maybe set some envvar, e.g. $HTOPPID, as the PID for the corresponding shell command to process. You could include example use cases such as

Code:

dpkg -S $(readlink /proc/$HTOPPID/exe) | cut -d: -f1
Code:

pacman -Qo $(readlink /proc/$HTOPPID/exe) | awk '{print$(NF-1)}
etc to show which package corresponds to the given process for various distros to sell the feature without appealing to the relatively unknown Bedrock. There are plenty of other use cases, such as finding a corresponding Docker image, number of open file descriptors, et al.

The Bedrock community can then set `brl which $HTOPPID` without having to maintain a fork.

Siljrath 09-02-2020 12:05 PM

i see there's now a htop fork, called htop-dev. maybe they'd like this idea. n_n
https://github.com/htop-dev/htop/blob/master/ChangeLog
just thought i'd mention it upon seeing both that news, and this thread, in short succession.

ParadigmComplex 09-02-2020 04:34 PM

Happy birthday: https://github.com/paradigm/htop

See the README.md.

Siljrath 09-02-2020 09:02 PM

yay. :)

for all my shame of whatever i have running at the time, i jumped to scrot the lot the instant i got that implemented up on screen. sweet. :)
so for however brief that scrot lives:
http://ks392457.kimsufi.com/stuff/sc...2560_scrot.png

[edit: joyous :) thankyou muchly :) ]


All times are GMT -5. The time now is 01:46 PM.