How can I kill all child processes of a certain process from the command line?
Clash Royale CLAN TAG#URR8PPP
up vote
0
down vote
favorite
I run both regular Chrome and Chrome Canary (from now on, Canary). Sometimes I want to kill all subprocesses, Google Chrome Helper, of Canary. The problem is that they have the same name as the subprocesses of regular Chrome so killall "Google Chrome Helper"
would kill both Canary's and Chromes' subprocesses.
How can, with a "oneliner" or similar, I kill all subprocesses of Canary without killing the subprocesses of Chrome with the same name?
Mac OS X
command-line osx kill process-management
add a comment |Â
up vote
0
down vote
favorite
I run both regular Chrome and Chrome Canary (from now on, Canary). Sometimes I want to kill all subprocesses, Google Chrome Helper, of Canary. The problem is that they have the same name as the subprocesses of regular Chrome so killall "Google Chrome Helper"
would kill both Canary's and Chromes' subprocesses.
How can, with a "oneliner" or similar, I kill all subprocesses of Canary without killing the subprocesses of Chrome with the same name?
Mac OS X
command-line osx kill process-management
add a comment |Â
up vote
0
down vote
favorite
up vote
0
down vote
favorite
I run both regular Chrome and Chrome Canary (from now on, Canary). Sometimes I want to kill all subprocesses, Google Chrome Helper, of Canary. The problem is that they have the same name as the subprocesses of regular Chrome so killall "Google Chrome Helper"
would kill both Canary's and Chromes' subprocesses.
How can, with a "oneliner" or similar, I kill all subprocesses of Canary without killing the subprocesses of Chrome with the same name?
Mac OS X
command-line osx kill process-management
I run both regular Chrome and Chrome Canary (from now on, Canary). Sometimes I want to kill all subprocesses, Google Chrome Helper, of Canary. The problem is that they have the same name as the subprocesses of regular Chrome so killall "Google Chrome Helper"
would kill both Canary's and Chromes' subprocesses.
How can, with a "oneliner" or similar, I kill all subprocesses of Canary without killing the subprocesses of Chrome with the same name?
Mac OS X
command-line osx kill process-management
command-line osx kill process-management
edited Sep 13 at 8:28
dr01
15.9k114869
15.9k114869
asked Sep 13 at 7:59
hensti
433
433
add a comment |Â
add a comment |Â
1 Answer
1
active
oldest
votes
up vote
1
down vote
accepted
Try using the -P
option of pkill:
-P ppid Restrict matches to processes with a parent process ID in the
comma-separated list ppid.
add a comment |Â
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
up vote
1
down vote
accepted
Try using the -P
option of pkill:
-P ppid Restrict matches to processes with a parent process ID in the
comma-separated list ppid.
add a comment |Â
up vote
1
down vote
accepted
Try using the -P
option of pkill:
-P ppid Restrict matches to processes with a parent process ID in the
comma-separated list ppid.
add a comment |Â
up vote
1
down vote
accepted
up vote
1
down vote
accepted
Try using the -P
option of pkill:
-P ppid Restrict matches to processes with a parent process ID in the
comma-separated list ppid.
Try using the -P
option of pkill:
-P ppid Restrict matches to processes with a parent process ID in the
comma-separated list ppid.
answered Sep 13 at 9:11
mosvy
1,59719
1,59719
add a comment |Â
add a comment |Â
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f468732%2fhow-can-i-kill-all-child-processes-of-a-certain-process-from-the-command-line%23new-answer', 'question_page');
);
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password