title: How to get child process from parent process
body: <p>Is it possible to get the child process id from parent process id in shell script? </p>
  
  <p>I have a file to execute using shell script, which leads to a new process <strong>process1</strong> (parent process). This <strong>process1</strong> has forked another process <strong>process2</strong>(child process). Using script, I'm able to get the pid of <strong>process1</strong> using the command:</p>
  
  <pre><code>cat /path/of/file/to/be/executed
  </code></pre>
  
  <p>but i'm unable to fetch the pid of the child process.</p>