Can we just put all the processes in one group and kill that group?
Is there any other way to do this?
|
Can we just put all the processes in one group and kill that group? Is there any other way to do this? | |||
|
feedback
|
This question came from our site for professional and enthusiast programmers.
|
Passing | |||
feedback
|
|
If the processes are not in the same process group, you can't use a negative PID, but you can list more than one PID on the command line:
Or if the processes have the same or similar names you can use a regular expression:
| |||
|
feedback
|
|
I think you are looking for pkill -P [parent id], but that parent process has to spawn the children. | |||
|
feedback
|