is possible child process id parent process id in shell script?
i have file execute using shell script, leads new process process1 (parent process). process1 has forked process process2(child process). using script, i'm able pid of process1 using command:
cat /path/of/file/to/be/executed but i'm unable fetch pid of child process.
just use :
pgrep -p $your_process1_pid
Comments
Post a Comment