title: C program that executes command with argument from argv and print command output and pids
body: <p>I'm new to C, and trying to figure out how I achieve the following:</p>
  
  <pre><code>./mycprog uname -r
  5.3.0-42-generic
  1234,5678
  </code></pre>
  
  <p>Where <code>1234</code> is the pid of <code>mycprog</code> and <code>5678</code> is the pid of <code>uname</code></p>
  
  <p>Thanks,
  Zvi</p>