Download How do I kill all subprocesses spawned by my bash script? book pdf free download link or read online here in PDF. Read online How do I kill all subprocesses spawned by my bash script? book pdf free download link book now. All books are in clear copy here, and all files are secure so don't worry about it. This site is like a library, you could find million book here by using search box in the header.
$$ is the process number of the current bash script. Depending on how the signal is treated by the child processes, that might or not kill the grandchild processes (and so on, recursively). So another way to do it is to get list the whole tree of processes starting at your bash and then kill them. pstree -A -p $$ | grep -Eow "[0-9]+" | xargs kill
Read : How do I kill all subprocesses spawned by my bash script? pdf book online Select one of servers for direct link: |
---|