Question: Program Requirements The student shall create an application which will implement a command loop and accept the commands defined by the following requirements. The student
Program Requirements
The student shall create an application which will implement a command loop and
accept the commands defined by the following requirements.
The student shall implement the command execution routine to execute an external
command submitted to the shell program.
The command execution routine shall recognize a simple program name or an
absolute path.
The exec command shall be "int execvconst char path char const argv;
When a simple program name is used the program shall use getenv "PATH" to
find the program location.
The student shall implement a separate program call mylsc which will display the
contents of a directory.
mylsc shall accept the a argument as an option as in the command and
behave accordingly. No other option is required to be implemented.
The name of the program shall be mysh an abbreviation of my shell". The
program must be written in and named myshc
The name of the directory list program shall be myls This program must be
written in and named mylsc
All programs shall be indented and formatted to be clearly readable.
The student is required to use the ansi" option to gcc for this assignment.
The student will "tar" the program. The tar command for the program is :
$ tar czf studentlastnamemyshtgz myshc mylsc
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
