11 lines
216 B
C
11 lines
216 B
C
#include <unistd.h>
|
|
#include <stdio.h>
|
|
#include <stdlib.h>
|
|
|
|
int main(void) {
|
|
char* args[] = {"sh", "-c", "echo 'exec works :D'", NULL};
|
|
execv("/bin/sh", args);
|
|
perror("execv");
|
|
return EXIT_SUCCESS;
|
|
}
|