Implement a simple linux shell in c capable of executing a


Solve question and the project in C language.

Question - Implement a simple Linux shell in C capable of executing a sequences of programs that communicate through a pipe. For example, if the user types ls | wc, your program should fork off the two programs, which together will calculate the number of files in the directory. For this, you will need to use several of the Linux system calls described in this chapter: fork, exec, open, close, pipe, dup2 and wait. Note you will to replace stdin and stdout in the child process with the pipe file descriptors; that is the role of dup2.

Project - Questions:

1. Rewrite the previous programs for multiple pipes such as one master with multiple clients; - select (_, _);

2. Can you rewrite the multiple-pipe program using shared memory functions: - shmat(), shmget(), shmcntl() . . .

Request for Solution File

Ask an Expert for Answer!!
C/C++ Programming: Implement a simple linux shell in c capable of executing a
Reference No:- TGS02186132

Expected delivery within 24 Hours