The following code snipplet defines two functions: childrenOf: Accepts a process ID and produces a list of child process IDs. Usage: PIDS="$(childrenOf ${SOME_PID})" allChildrenOf: Recursively produces a list of child process IDs for a given process ID. This function needs childrenOf to be defined. Usage: PIDS="$(allChildrenOf ${SOME_PID})" [crayon-569b522542525437997916/]
The post Child Processes appeared first on Nicholas Dille.