Question
Write a custom shell program as described in the textbook: Programming Project 1, Part 1 (page 157). Do not do Part 2 (history feature) unless
Write a custom shell program as described in the textbook: Programming Project 1, Part 1 (page 157). Do not do Part 2 (history feature) unless you wish to do so for fun. You are not required to detect & for background processes unless you wish to do so for fun. The minimum requirements are:
-
Use the basic design provided in simple-shell.c that was provided in class and appears in Fig. 3.36.
-
Parse the user input appropriately. You may use the approach provided in execvp_demo.c that was
provided in class, or you may use a different approach that is more robust.
-
Fork a new process for every command (except exit) in order to provide separate process control.
-
Use wait() for the parent process.
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access with AI-Powered 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