Answered step by step
Verified Expert Solution
Question
1 Approved Answer
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
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started