title: How to deal with "warning: ignoring return value of ‘system’, "
body: <p>I need to run some bash shell commands when my c program reaches to a certain point. What I have found by googling is that system() provides such a functionality. However, compiling the code by gcc generates a warning message like below and the bash command does not get executed. Any solution or alternative? </p>
  
  <pre><code>warning: ignoring return value of ‘system’, declared with attribute warn_unused_result [-Wunused-result]
  system(command);
  </code></pre>