Question: Write this in C 6. (shell) Write a shell-like program that illustrates how UNIX spawns processes. This simple program will provide its own prompt to

Write this in C
6. (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 ls and date. (MinShell.c MiniShell)
7. (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 l ~/tmp etc. (MoreShell.c MoreShell)
8. (redirecting output using dup or dup2) Add to the MoreShell ability to execute command lines with commands connected by pipes. Use
(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 inpu and execute the command. It is sufficient to handle just "argument-less" commands, such as ls 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 suchas more filename and ls-Imp etc. (MoreShell.c MoreShell) (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: Is -1 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
