title: Execute external command and wait for it to finish under Linux
body: <p>Easy question: what is the easiest way to execute an external program (with parameters) from C++ (using g++ and Linux)? Is there an easier way rather than doing fork/exec and waiting? I just need to execute the command and wait for it to finish.</p>