Use vfork()/execvp() instead of system().