0

How can I generate a process listing, that does not include the current process, its shell and any related processes in the process group, and the SSHD process generated to handle the session?

Does ps(1) actually have an option that does this?

Is there some predicate I can apply to each process to filter it out of any listing I generate?

Andrew Grimm
  • 78,473
  • 57
  • 200
  • 338
Matt Joiner
  • 112,946
  • 110
  • 377
  • 526

1 Answers1

1

Combining the answer referenced below with the -N (--deselect) option for ps might get you there:

Community
  • 1
  • 1
ars
  • 120,335
  • 23
  • 147
  • 134