Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Using C++, you are to design a simple shell which implements a subset of the functionality of the Bourne Again Shell (Bash). The requirements for

Using C++, you are to design a simple shell which implements a subset of the functionality of the Bourne Again Shell (Bash). The requirements for your shell are as follows: Continually prompt for textual user input on a command line. Parse user input according the the provided grammar (see below) When a user enters a well formed command, execute it in the same way as a shell. You must use the commands fork and exec to accomplish this. You may NOT use the C++ system() command. Allow users to pipe the standard output from one command to the input of another an arbitrary number of times. Support input redirection from a le and output redirection to a le. Allow users to specify whether the process will run in the background or foreground using an '&'. (Commands to run in the foreground do not have an '&', and commands that run in the background do)

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Databases On The Web Designing And Programming For Network Access

Authors: Patricia Ju

1st Edition

1558515100, 978-1558515109

More Books

Students also viewed these Databases questions

Question

305 mg of C6H12O6 in 55.2 mL of solution whats the molarity

Answered: 1 week ago

Question

=+ d. What happens to Oceanias trade balance?

Answered: 1 week ago

Question

=+ e. What happens to Oceanias real exchange rate?

Answered: 1 week ago