title: how to print stderr message in file using execl() function in c
body: <p>For example:
  command for writing stderr message in file is </p>
  
  <pre><code>command &gt; /dev/null 2&gt;text.file"
  </code></pre>
  
  <p>so,</p>
  
  <pre><code>execl("gcc" , "gcc" , "-g" , "test.c" , "&gt;" , "/dev/null 2" , "&gt;" , "test" , NULL);
  </code></pre>
  
  <p>execl is returning -1. It is not printing error in text.file</p>