title: Why is it bad to use system() in linux programming?
body: <blockquote>
    <p><strong>Possible Duplicate:</strong><br>
    <a href="https://stackoverflow.com/questions/4622693/issuing-system-commands-in-linux-from-c-c">Issuing system commands in Linux from C, C++</a>  </p>
  </blockquote>
  
  
  
  <p>I see on some text that it is not good to use system() call in linux programming, I wonder what are the real reasons of it? It should consume more memory and maybe more CPU. Apart from these what could be the reason?</p>
  
  <p>For example, if I type <code>system("echo 1 &gt; file");</code> instead of using <code>fopen(), fwrite()</code> what a hacker can do in my program/linux system? I saw that system() is not advise because of security issues. But how a person can hack a linux system just because of using system() call? I would be glad if someone can explain tangibly what could go bad to use system().</p>