System calls are your hotline to the OSThen someone busted into the system...Security’s not the only problemThe exec() functions give you more controlexec() functions replace the current processThere are many exec() functionsThe list functions: execl(), execlp(), execle()The array functions: execv(), execvp(), execve()Passing environment variablesBut what if there’s a problem?Most system calls go wrong in the same wayRead the news with RSSexec() is the end of the line for your programfork() will clone your processRunning a child process with fork() + exec()1. Make a copy2. If you’re the child process, call exec()Your C Toolbox