Design and Implement a Simple Command Shell

Design and Implement a simple shell. The shell should

  1. Parse the command line for a single command and all its arguments
  2. Create and execute a process for the command (and its arguments) on the command line.
  3. 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.

  1. The Makefile I used for this assignment.
  2. 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.
  3. Here is my main.c

The objective is to:
You will create a tarred, gzipped file named as0.tgz containing
  1. Source code files
  2. a readme, and
  3. 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