Difference between revisions of "Exec system call"

From Teknologisk videncenter
Jump to: navigation, search
(Created page with "The '''exec()''' family executes a file as a new process. See fork system call for "cloning" a process. The =Simple use= The '''execlp()''' is one of the function call in...")
(No difference)

Revision as of 09:42, 17 December 2022

The exec() family executes a file as a new process. See fork system call for "cloning" a process.

The

Simple use

The execlp() is one of the function call in the exec family. See manpage

#include <stdio.h>
#include <unistd.h>
int main()
{
        execlp("ls","ls","/etc", NULL);
        return 1;
}