Skip to content

Commit e96f72c

Browse files
author
Alex
committed
added a couple more c functions
1 parent 3dd27f1 commit e96f72c

File tree

4 files changed

+27
-0
lines changed

4 files changed

+27
-0
lines changed

execlp1

0 Bytes
Binary file not shown.

execlp1.c

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
//execlp1.c
2+
#include <stdlib.h>
3+
#include <stdio.h>
4+
#include <unistd.h>
5+
int main()
6+
{
7+
8+
printf("Running ps with execlp1\n");
9+
execlp("ps","ps","ax",NULL);
10+
printf("Done.\n");
11+
exit(0);
12+
13+
}

execlp2.c

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
//execlp2.c
2+
#include <stdlib.h>
3+
#include <stdio.h>
4+
#include <unistd.h>
5+
int main()
6+
{
7+
8+
printf("Running ps with execlp1\n");
9+
execlp("ps","ps","ax",NULL);
10+
execlp("&");
11+
printf("Done.\n");
12+
exit(0);
13+
14+
}

execpl2

8.5 KB
Binary file not shown.

0 commit comments

Comments
 (0)