Is it possible to get the child process id from parent process id in shell script?
I have a file to execute using shell script, which leads to a new process
You can get the pids of all child processes of a given parent process by reading the /proc//task//children entry.
pids
/proc//task//children
This file contain the pids of first level child processes.
For more information head over to https://lwn.net/Articles/475688/