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