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

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!