#include
#include
#include
#include
int main(void)
{
pid_t pid;
char *cmd = /bin/echo;
char *args[] = { cmd, ECS150, NULL};
pid = fork();
if (pid == 0) {
/* Child */
execv(cmd, args);
perror(execv);
exit(1);
} else if (pid > 0) {
/* Parent */
int status;
waitpid(pid, &status, 0);
printf(Child returned %d
,
WEXITSTATUS(status));
} else {
perror(fork);
exit(1);
}
return 0;
}

![[SOLVED] CS #include](https://assignmentchef.com/wp-content/uploads/2022/08/downloadzip.jpg)

![[Solved] Payroll calculation program-Python](https://assignmentchef.com/wp-content/uploads/2022/08/downloadzip-1200x1200.jpg)
Reviews
There are no reviews yet.