To match only processes with a project ID in a specific list, use the pgrep and pkill commands with the -J option:
# pgrep -J projidlist # pkill -J projidlist |
To match only processes with a task ID in a specific list, use the pgrep and pkill commands with the -T option:
# pgrep -T taskidlist # pkill -T taskidlist |