📜  604.c - Shell-Bash 代码示例

📅  最后修改于: 2022-03-11 14:49:47.886000             🧑  作者: Mango

代码示例1
#include 
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);
}