#include <unistd.h>

int execl(const char *path, const char *arg, ...);


execl() replaces current process image with a new process image. const char *arg can be a series of arguments describing a list of one or more arguments (pointers to null-terminated strings) available to the executed process.

Return value

If function retunes, an error have occurred. The return value is -1.


On error variable errno is set to indicate an error.