The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Top Forums > High Level Programming
Google UNIX.COM



View Single Post in UNIX Forums - Click on the Thread or Permalink to View Entire Thread -->
  #4 (permalink)  
Old 05-05-2008
fabtagon fabtagon is offline
Registered User
 

Join Date: Apr 2008
Location: European Union/Germany
Posts: 183
system() costs mainly the memory for a shell instance. It's secure when the programmer considers the environement (variables) to be unreliable/hostile.

One has to consider what's more important: simplicity of code (system()) or efficiency (fork(), exec(), ...)
Reply With Quote