Pablo and Dave are right, depending on what you want to do.
execlloads a new application into memory and launches it instead of the current process. Your program will terminate after a call execl().
The system starts the application in a subshell, you can get its exit status, but not information about it, data stdin / stdout.
How interested are you in what happens after the process starts?
source
share