The goal of this assignment is to get familiar with process control.
In this assignment, you are to implement a simple shell program. It will print a prompt, then read in whatever the user types and try to execute it assuming that it is a program, then print out the prompt, ..., etc.
Your shell should do three things:
For extra credit you may also:
To implement your program, you will need to use the systems calls that manage processes: fork(), execv(), wait(), and exit().
My advice is to implement this program as follows:
1. Get it to work with programs that take no parameters (e.g., ls)
2. Get it working with parameters
3. Add one other feature
Note: You may not use the system() function.
REMEMBER: Do not submit object files, assembler files, or executables. Every file in the submit directory that could be generated automatically by the compiler or assembler will result in a deduction from your programming assignment grade.
sbrandt@cse.ucsc.edu |