Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

please complete the following IN C (shell) Write a shell-like program that illustrates how UNIX spawns processes. This simple program will provide its own prompt

please complete the following IN C image text in transcribed

(shell) Write a shell-like program that illustrates how UNIX spawns processes. This simple program will provide its own prompt to the user, read the command from the input and execute the command. It is sufficient to handle just "argument-less" commands, such as Is and date. (MinShell.c-> MiniShell) (passing and parsing arguments) Make the mini-shell (from the previous part) a little more powerful by allowing arguments to the commands. For example, it should be able to execute commands such as more filename and ls MoreShell) --Amp etc. (MoreShell.c (redirecting output using dup or dup2) Add to the MoreShell ability to execute command lines with commands connected by pipes. Use dup2 or dup system call to redirect IO Example: ls-l | wc . (DupShell.c DupShell)

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

Advanced Database Systems

Authors: Carlo Zaniolo, Stefano Ceri, Christos Faloutsos, Richard T. Snodgrass, V.S. Subrahmanian, Roberto Zicari

1st Edition

155860443X, 978-1558604438

More Books

Students also viewed these Databases questions