Computers and Technology

You will write a program named myshell that is capable of executing user's commands. Your program should print out a prompt: myshell> when it is ready to accept input. It must read a line of input, accepting several possible operations. This is a very simple shell, so it only accepts two operations: run and exit. 1. The run operation will execute other programs specified by the users. For example: run ls will execute ls. run ls -l will execute ls -l run date will execute date run who will execute who If user provides an unknown program, the shell should print out an error message. run azzxcd will try to execute azzxcd but will fail. m

answer
Answers: 1

Other questions on the subject: Computers and Technology

image
Computers and Technology, 23.06.2019 06:40, euniceyi56
How many nibbles can be stored in a 16-bit word?
Answers: 1
image
Computers and Technology, 23.06.2019 16:30, vitothebest1
You have read about the beginnings of the internet and how it was created. what was the internet originally created to do? (select all that apply) share research. play games. communicate. share documents. sell toys
Answers: 1
image
Computers and Technology, 24.06.2019 01:30, tanya44737
Hazel has just finished adding pictures to her holiday newsletter. she decides to crop an image. what is cropping an image?
Answers: 1
image
Computers and Technology, 24.06.2019 14:00, youcandoit13
In simple terms, how would you define a protocol?
Answers: 2
Do you know the correct answer?
You will write a program named myshell that is capable of executing user's commands. Your program sh...

Questions in other subjects: