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-55f3ac50a2d20525013704/]
The post Child Processes appeared first on Nicholas Dille.