Question: a . Impiement a command inne interpreter or shell. b . A shell interface that accepts user commands, executes each command a user enters in

a. Impiement a command inne interpreter or shell.
b. A shell interface that accepts user commands, executes each command a user enters in a separate process, and then prompts for more user inputs.
c. Should be similar to the shell that you use in everyday Linux such as bash or sh.
d. The shell program should run in two modes: interactive and batch.
i. In interactive mode, you will display a prompt (any string of your choosing) and the user of the shell will type in a command at the prompt.
$./myshell
osh> Is -I
ii. In batch mode, your shell is started by specifying a batch file on its command line; the batch file contains the list of commands (in each line) that should be executed. In batch mode, you should not display a prompt.
osh>./myshell cmds.txt
e. Your implementation will also support input and output redirection, as well as pipes as a form of IPC between a pair of commands.
f. Minimum features:
i. Two running modes: interactive and batch
ii. Creating the child process and executing the command in the child
iii. Providing a history feature
iv. Adding support of input and output redirection
v. Allowing the parent and child processes to communicate via a pipe.
a . Impiement a command inne interpreter or

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 Programming Questions!