Ithaca College Logo Ithaca College Home Blue Header

Ithaca College, Ithaca, New York

Project 4

Fall 2005

Due Date: Beginning of class, Wednesday, 30 November.


References.


Note!

Historically some people have reported that the code for the parseCommand program in the handout has a problem. The code compiled and ran fine for me, but if you're having problems with the strsep( ) function (it's in the string.h library), then try using the function (also defined in string.h):

char *strtok(char *str, const char *set)

This function takes two strings as paramters. The second string contains a string containing the characters you want to use as separators. The first time you call the function, pass the string that you want parsed as the first argument. After the first call, pass NULL as the first argument, and strtok will continue to parse the string you passed in originally. Note that you cannot modify the original string in your program if you want strtok to continue to parse it.


Requirements.

Details

You do have to include all of the features of the shell described in the handouts. Particular constraints to your solution are as follows.

Administrative concerns.

Deliverables.

  • You must demonstrate your program to me.
  • You must hand in a hard copy of all code that you use in your solution.
  • You must also put a copy of all source code that you use in your solution on the Linux Server.

  • Revision History

    Date Revision
    14 November PS posted


    Last updated on 16 Nov 2005 by John Barr