Homework 10: Dash-ing trough some pipes.
Modify the dash shell to execute programs through pipes.
This homework is worth 10 points.
Goals
When you finish this homework you should:
- Have used pipe()
- Have used kill()
Assignment
Continue to work the dash shell. Add the following features
- Allow the execution of two programs, where the standard output of the first becomes the standard input of the second.
- Use standard pipe syntax (|)
- You should be able to execute
- ls -alrt | less -c
- You may ignore file redirection and background
- Add a built-in to kill all background jobs
- The command HOSE should kill all background jobs started in the shell.
- The command HOSE pid should kill the job identified by pid.
Submission
Email a copy of the C code to complete the final task to your instructor by class time. If your code consists of a single file, the source code will be sufficient, if the code is in multiple files, you should submit a tar file containing the source code and a make configuration file required to build the project.