Add new properties for the path and arguments separately
See original GitHub issueCurrently there’s process.cmd
, but it includes both the path and arguments. Would be useful for https://github.com/sindresorhus/fkill-cli/issues/16 to have separate process.path
and process.args
properties.
Context:
I looked into this more, and I might have a solution to get the arguments without the full path. It seems
ps -o pid -o comm
returns the full path without arguments andps -o pid -o command
returns with arguments. So we could get both columns and just diff them to get the arguments. I think this should be added as a new property inps-list
. So we could add anargs
property with just the arguments and apath
property with the full path to the binary without arguments, just for completeness.
There is a $40.00 open bounty on this issue. Add more on Issuehunt.
- Checkout the Issuehunt explorer to discover more funded issues.
- Need some help from other developers? Add your repositories on Issuehunt to raise funds.
Issue Analytics
- State:
- Created 7 years ago
- Comments:8 (5 by maintainers)
Top GitHub Comments
Ideally, someone would write a cross-platform binary for this in Rust and we could just bundle some binaries for each platform, and fall back to
ps
if those fail or something.What other API? And why would it require writing a whole article?