Question: please complete the following IN C (shell) Write a shell-like program that illustrates how UNIX spawns processes. This simple program will provide its own prompt
please complete the following IN C 
(shell) Write a shell-like program that illustrates how UNIX spawns processes. This simple program will provide its own prompt to the user, read the command from the input and execute the command. It is sufficient to handle just "argument-less" commands, such as Is and date. (MinShell.c-> MiniShell) (passing and parsing arguments) Make the mini-shell (from the previous part) a little more powerful by allowing arguments to the commands. For example, it should be able to execute commands such as more filename and ls MoreShell) --Amp etc. (MoreShell.c (redirecting output using dup or dup2) Add to the MoreShell ability to execute command lines with commands connected by pipes. Use dup2 or dup system call to redirect IO Example: ls-l | wc . (DupShell.c DupShell)
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
