Killing child processes

All off topic discussions go here. Everything from the funny thing your cat did to your favorite tv shows. Non-programming computer questions are ok too.
Post Reply
User avatar
Neo
Member
Member
Posts: 842
Joined: Wed Oct 18, 2006 9:01 am

Killing child processes

Post by Neo »

Is there any command to kill a process which also kills all its child processes forcefully?
Only Human
JoeKayzA

Re:Killing child processes

Post by JoeKayzA »

Hi!

Code: Select all

killall -KILL -g [parent-process-name]
should do the job, at least it does so for my shell scripts.

cheers Joe
User avatar
Neo
Member
Member
Posts: 842
Joined: Wed Oct 18, 2006 9:01 am

Re:Killing child processes

Post by Neo »

Couldnt find killall in CYGWIN thats why I wasn't trying it. Thanks anyway.
Is there some option of 'kill' that does this same thing?
Only Human
Post Reply