pidtree icon indicating copy to clipboard operation
pidtree copied to clipboard

Ability to exclude pidtree underlying ps/wmic process from results

Open magne4000 opened this issue 7 years ago • 0 comments

Sometimes on windows (but probably on linux/mac also with ps), I'm having wmic process appearing in my process tree, but I would like to be able to have an option to force it not to show up in process tree.

Here is my use case:

pidtree(process.pid)
  .then(pidusage)
  .then(...);
  • pidtree(process.pid) sometimes includes wmic process
  • pidusage is executed upon wmic process, but I do not want it

magne4000 avatar Oct 18 '18 15:10 magne4000