Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

You will create your own linux shell by writing a C/C++ program. Please go through the demo codes provided and try to understand the functions

image text in transcribed

You will create your own linux shell by writing a C/C++ program. Please go through the demo codes provided and try to understand the functions mentioned in the hint section. Your new shell should support following commands and similar commands: user commands, such as Is, date, Is - - -a commands with I/O re-direction , ex : Is 1>a a.txt commands with a single pipe ,ex : who | wc -1 command with piping and redirection; ex: Is 1 sort > b.txt Like all Linux shells, your shell executes a loop. It prints the shell prompt, reads the command line (terminated with NULL), parses the command line and creates its arguments, executes the command with its arguments, then waits until the command finishes. It should be a child process which runs a command. Following image shows an example solution in action where Is command is operated first, and others subsequently until the entered command is exit

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

Database Marketing The New Profit Frontier

Authors: Ed Burnett

1st Edition

0964535629, 978-0964535626

More Books

Students also viewed these Databases questions

Question

Develop a program for effectively managing diversity. page 303

Answered: 1 week ago

Question

List the common methods used in selecting human resources. page 239

Answered: 1 week ago