Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Help with a programming assignment that requires the knowledge of Bash, fork, exec and C++ For this assignment, you are to design a simple shell

Help with a programming assignment that requires the knowledge of Bash, fork, exec and C++

image text in transcribed

For this assignment, you are to design a simple shell which implements a subset of the functionality of the Bourne Again Shel (Bash). The requirements for your shell are as follows: . Continually prompt for textual user input on a command line . Parse user input according the provided grammar (see below) . When a user enters a well formed command, execute it in the same way as a shel. 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 file and output redirection to a file Allow users to specify whether the process will run in the background or foreground using an '&. Backgrounding processes should not result in the creation of zombie processes. (Commands to run in the foreground do not have an '&, and commands that run in the background do) . Allow your program to take an option"-t" which will run your shell the same way, just without a prompt

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_2

Step: 3

blur-text-image_3

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

Concepts of Database Management

Authors: Philip J. Pratt, Joseph J. Adamski

7th edition

978-1111825911, 1111825912, 978-1133684374, 1133684378, 978-111182591

More Books

Students also viewed these Databases questions

Question

Identify each of the curves in the following graph:

Answered: 1 week ago