Design and Implement a Simple Command Shell
Design and Implement a simple shell. The shell should
- Parse the command line for a single command and all its arguments
- Create and execute a process for the command (and its arguments)
on the command line.
-
Graduate students will need to support input/output redirection.
Here's some code to help you.
You can save, compile, and execute these programs and use them as
templates for your shell.
- The Makefile I used for this
assignment.
- Note that I have 3 .h files and 3 .c files, you may use this
organization of your code files. You may also come up with and use
your own. You cannot put all your code in one file.
- Here is my main.c
The objective is to:
You will create a tarred, gzipped file named as0.tgz containing
- Source code files
- a readme, and
- a Makefile to make your executable.
Your source should compile and run without errors on the linux
machines in SEM252.
Turn in your tarred, gzipped file by emailing it as an
attachment to
cs446@cs.unr.edu
In addition, print hardcopy of your code and turn it in before start of class
No late assignments will be accepted without a note from your doctor :-)
Good Luck!
Sushil Louis
Last modified: Mon Feb 9 10:11:48 PST 2004