stackofcodes
Home
Categories
Popular Codes
Articles
/
Shell/Bash
/
604.c
604.c
604.c
#include <sys/wait.h> int main() { pid_t pid = fork(): if(pid<0) { perror("Fork failed") return 1; } else if (pid == 0){ printf("\n In child process\n"); printf("Printing current working directory using execlp system call\n"); excelp("bin/1s","Is", NULL); }
0
Share
Similar codes
1 vote
84 views
1 answer
Install bootstrap 4 with npm
Shell/Bash
1 vote
81 views
1 answer
How to get updates in linux
Shell/Bash
1 vote
121 views
2 answers
ModuleNotFoundError: No module named 'celery'
Shell/Bash
0 vote
98 views
3 answers
Emacs
Shell/Bash
0 vote
50 views
0 answer
Shell/Bash
1 vote
91 views
1 answer
Bash print lines that dont have a word
Shell/Bash
1 vote
102 views
1 answer
Generate pgp key linux
Shell/Bash
0 vote
103 views
1 answer
Check status service Apache FreeBSD
Shell/Bash
0 vote
50 views
1 answer
Grafana install
Shell/Bash
0 vote
91 views
1 answer
Get target of command bash
Shell/Bash
Share