Question: ) if the command is exit then exit the program ( to be terminated ) else if the command is listall then you replace the
if the command is "exit"
then exit the program to be terminated
else if the command is "listall"
then you replace the input by ls la
else if the command is "compile program.c where program.c is hello.c
then you replace the input by gcc hello.c o hello"
let child process to run the input command via exec call
repeat the loop
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
