exec family and system()

[http://stackoverflow.com/questions/2289341/when-to-use-system-and-when-to-use-execv]


The exec family of functions will replace the current process with a new one, whilst system will fork off the new process, and then wait for it to finish. Which one to use depends on what you want.




你可能感兴趣的:(exec family and system())