Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

cmdline #27

Open
c-hernandez0 opened this issue Jan 31, 2022 · 1 comment
Open

cmdline #27

c-hernandez0 opened this issue Jan 31, 2022 · 1 comment

Comments

@c-hernandez0
Copy link

c-hernandez0 commented Jan 31, 2022

Hi Tanel,
Is the cmdline option supposed to include the full command line of a process? It looks like I am getting the process name (or path to it) instead of /proc/< pid >/cmdline

RHEL 7.9

@tanelpoder
Copy link
Owner

Right now it only includes the 1st \0-delimited string of the full cmdline. Linux /proc/PID/cmdline is a list of \0-terminated strings, so conveniently the command name is just the 1st string to extract out of it.

I could add either a column cmdline2 or cmdargs that would replace the \0s with spaces and printed out the whole thing (it could get very wide though).

Comments appreciated!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants
@tanelpoder @c-hernandez0 and others