0xtools
0xtools copied to clipboard
cmdline
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
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!