pgrep/pkill: please add selection by process state
Hello!
It would be nice if pgrep
had a --state
option to select processes with a given state.
This could help in writing monitoring scripts. For example::
# select all zombie proc's
pgrep --state Z
# select processes in uninterruptible I/O
pgrep --state D
Thanks :-)