Question: Write a simple shell (command interpreter), which reads commands from the standard input and executes them. Here are the features that must be included in

 Write a simple shell (command interpreter), which reads commands from the

Write a simple shell (command interpreter), which reads commands from the standard input and executes them. Here are the features that must be included in your program: Display the prompt "" before reading the next command line. Read and parse one command line at a time from the standard input. You can assume that only one command and its arguments are in a command line. The command "exit" should cause your program to terminate. Call fork() to create a new process, which calls one of the exec functions to execute the command that was read. Your program should wait until the execution of the command is finished and then continue to read the next command line.|

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!