Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SHELL

kill process group linux

# Find process group ID using child process name 
PGID=$(ps -ej | grep some-process-child | head -1 | awk '{print $2}')  
# Kill process group using group ID
kill -- -$PGID
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #kill #process #group #linux
ADD COMMENT
Topic
Name
9+6 =