How to exec a program by shell, into the code C language.

How to exec a program by shell, into the code C language.
Below an example.

#include <stdio.h >
#include <stdlib.h >

int
main(void)

{

int y;
y=execl("/home/ghost/myapp",
"myapp", NULL)
;

}

#c #unix #linux #ethicalhacker #programming

Commenti

Post popolari in questo blog