System Administration Guide: Resource Management and Network Services

pgrep and pkill

To match only processes with a project ID in a specific list, type the following:


# pgrep -J projidlist
# pkill -J projidlist

To match only processes with a task ID in a specific list, type the following:


# pgrep -T taskidlist
# pkill -T taskidlist