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
I am not sure if I understand you correctly, does this help?
ps --ppid