Question: Extended CLI: Extend the CLI example discussed in class (slide 64 in Ch_03_a.pdf) so it is not limited to only the list of possible commands.


Extended CLI: Extend the CLI example discussed in class (slide 64 in Ch_03_a.pdf) so it is not limited to only the list of possible commands. The new program should loop through the following 1. 2. 3. 4. Prompt to the user and wait for their input Read the user input, tokenize it and build a NULL-terminated string array. Create a new process to execute the user command Parent process should wait until user command is executed before it returns to step 1
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
