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
Just use :
pgrep -P $your_process1_pid