project1 - CSE 410 Operating Systems Computer Project 1...

Info iconThis preview shows pages 1–2. Sign up to view the full content.

View Full Document Right Arrow Icon
CSE 410 Operating Systems Computer Project 1: UNIX Command Interpreter (Shell) Due Date: May 30, 2008 Assignment Overview: Design and implement a C/C++ program that runs as a basic command-line interpreter (shell). Assignment Specifications 1. Let PROG1 be the name of your executable. If the program is invoked as “PROG1 –c LIST” then the program executes the command given by LIST and terminates. For example “PROG1 –c ls –l” (without quotes) will execute the command “ls –l” and terminate. (In this option, built-in commands (listed below) are not allowed) 2. Without the –c option, the program repeatedly displays a prompt containing the sequence number of the current command (starting at 1) and the name of the machine. This information will be enclosed in the characters ‘<’ and ‘>’. For example: <1 adriatic >. The sequence number and machine name will be separated by a singe space. 3. After displaying the prompt, the program will read one line of input from the user. An input line is defined as a sequence of zero or more tokens (character strings), separated by one or more delimiters (blanks and tabs), ending with a newline character. The characters `<’ ‘>’ ‘;’, and ‘|’ are defined to be separate tokens. There will be no more than 128
Background image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full Document Right Arrow Icon
Image of page 2
This is the end of the preview. Sign up to access the rest of the document.

{[ snackBarMessage ]}

Page1 / 4

project1 - CSE 410 Operating Systems Computer Project 1...

This preview shows document pages 1 - 2. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online