Question: Task One: Add Simple Program Calling (50 points) For task one, modify the program so that that when the token pointed to by largv[0] is

Task One: Add Simple Program Calling (50 points) For task one, modify the program so that that when the token pointed to by largv[0] is NOT a built-in command, your sillyshell will do the following: a) fork a process b) have the child process load the program in the file specified by largv[0] and be passed the appropriate command line arguments. c) have the parent wait on the completion of the child, then return to normal processing of input lines. Note, ALL of modifications you need to make could be done INSIDE the sillyshell routine called execute(). Also note that this task is nearly identical to a task we did during an in-class activity. Task Two: Add a Built-In Command that Prints out All Environment Variables (10 points) For task two, add a new built-in command called "printenv" that prints to the screen ALL of the current shell's environment variables. This will require you to include a slight variation on code you would have developed during an in-class exercise. Task One: Add Simple Program Calling (50 points) For task one, modify the program so that that when the token pointed to by largv[0] is NOT a built-in command, your sillyshell will do the following: a) fork a process b) have the child process load the program in the file specified by largv[0] and be passed the appropriate command line arguments. c) have the parent wait on the completion of the child, then return to normal processing of input lines. Note, ALL of modifications you need to make could be done INSIDE the sillyshell routine called execute(). Also note that this task is nearly identical to a task we did during an in-class activity. Task Two: Add a Built-In Command that Prints out All Environment Variables (10 points) For task two, add a new built-in command called "printenv" that prints to the screen ALL of the current shell's environment variables. This will require you to include a slight variation on code you would have developed during an in-class exercise
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
