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 execv(const 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 myls.c which will display the
contents of a directory.
myls.c shall accept the "-a" argument as an option as in the "1s" command and
behave accordingly. No other option is required to be implemented.
The name of the program shall be "mysh2", an abbreviation of "my shell". The
program must be written in "C" and named "mysh2.c.
The name of the directory list program shall be "myls". This program must be
written in "C" and named "myls.c".
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 "C" program is :
$ tar czf studentlastname_mysh2.tgz mysh2.c myls.c
 Program Requirements The student shall create an application which will implement

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