0xtools icon indicating copy to clipboard operation
0xtools copied to clipboard

cmdline

Open c-hernandez0 opened this issue 3 years ago • 1 comments

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

c-hernandez0 avatar Jan 31 '22 16:01 c-hernandez0

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!

tanelpoder avatar May 20 '23 04:05 tanelpoder