title: Using exec() functions to Call Linux Command in C
body: <p>I've been stuck trying to do this for a while now, and I just cannot get it to work no matter what I try. </p>
  
  <p>My C code looks like this: </p>
  
  <pre><code>char *const parmList[] = {"ps","-o pid",processID,NULL};
  execvp("/bin/ps", parmList);
  </code></pre>
  
  <p>What am I doing wrong?</p>