Computers and Technology, 16.03.2020 23:25, markayla101326
In this assignment, you will write a complete C program that will act as a simplecommand-line interpreter (i. e., a shell) for the Linux kernel. In writing your shell, you areexpected to use the fork-exec-wait model discussed in class. In particular, you are toimplement the following:• Loop continuously until the user enters quit, which exits your shell.• Inside the loop, you will print your "minor5" prompt and read in the user’scommand, which may consist of a Linux command with 0 or more options andarguments supported by the command. You are expected to read in and processonly 1 command at a time with no pipelining or redirection.• In a child process, you are to execute the command as given, including alloptions and arguments given. If the command is not valid, rather than display an"exec failed" message as shown in class examples, you will simply print outthe command itself with "command not found" as shown in the SAMPLEOUTPUT and then exit the child process. The parent process should wait for thechild process to finish. If you have any questions about this, please contact your instructor, TAs, or IAsassigned to this course to ensure you understand these directions. SAMPLE OUTPUT (user input shown in bold):$ ./a. outminor5> lsa. out grades. txt rec01.txt testdir phone. txt route. txt who. txtdu. txt rec01.c file1 rec01sol. c minor5.cminor5> ls -a -l -ttotal 144-rwx 1 cat0299 cat0299 7835 Oct 14 17:39 a. outdrwx 4 cat0299 cat0299 4096 Oct 14 17:39 .-rw 1 cat0299 cat0299 2665 Oct 14 17:39 minor5.c-rw 1 cat0299 cat0299 33 Oct 5 03:30 du. txt-rw 1 cat0299 cat0299 33 Oct 5 01:28 file1-rw 1 cat0299 cat0299 333 Oct 5 01:02 route. txt
Answers: 3
Computers and Technology, 23.06.2019 14:30, Vanesssajohn2962
Norder to receive financial aid at his vocational school, mario must fill out the fafsa. the fafsa is a form that must be completed to determine . in order to complete a fafsa, you must submit . the fafsa can students obtain
Answers: 2
Computers and Technology, 24.06.2019 10:10, juliana0122
Scanning the road can be thought of as a
Answers: 2
In this assignment, you will write a complete C program that will act as a simplecommand-line interp...
Mathematics, 29.03.2020 07:16
English, 29.03.2020 07:16
Physics, 29.03.2020 07:17