I need help


 
Thread Tools Search this Thread
Top Forums UNIX for Dummies Questions & Answers I need help
# 1  
Old 12-12-2006
I need help

plese can any one help me


develop a script (small program) in the environment of a
well-known UNIX shell.
To show that you have succeeded, you have to:
• Develop a script that simplifies communications with the UNIX operating system for a
particular UNIX command does interaction with the computer friendlier. These simplicity
and friendliness will be achieved by means of:
− Interactive constructing a request to UNIX,
− Checking user input for errors;
− Highlighting such errors with clear messages;
• Test your script, and
• Prepare your Report.
2. The task
There is only ONE candidate TASK. This task is described in Section 5 below. The main result of
your work is your script, i.e., a program written in the UNIX operating system language,
presumably (but not necessarily) for the Korn shell.
You should hand in a well-documented hard copy of your Report consisting of: (1) the task
description, (2) the script itself, i.e., the text of your program (it may be in your transcript file
printed out), and (3) a printed transcript of your test session(s) demonstrating capability of your
script (in other words, execution of all its functions or their systematic testing).
3. Handing in
When you have developed your program, you have to:
1) Demonstrate to your tutorial supervisor that the program works;
your code to test if your test results are not enough to understand completeness of
functionality implemented in your script.)
4. The marking procedure and criteria
There will be three steps of marking your Coursework 2 with two sets of criteria.
4.1 Step 1:
The first step is marking to make a decision whether you pass or fail.
To pass you need to:
1) Create your script for the task described which meets minimal
requirements including:
− Producing an easy to follow interactive interface for your program
− Obtaining command details from the user in a helpful way
− Using a loop from which the user can exit
2) Demonstrate that your script works for Minimal Requirements
According to these criteria, you can get in this step 40 marks or less, i.e., your Step-1-Mark = 40 or
your Step-1-Mark < 40.
3) Provide potential functionality of the original UNIX command presented in
Full Requirements (testing of files in the file-list is marking separately, see
below);
4) Develop “good” code that:
- Is not long winded or repetitive
- Is well commented and uses meaningful variable names
- Provides full error checking throughout
- Provides clear error messages
- Uses at least one of UNIX language function (the more the better)
- Provides at least one piece of extra functionality not embedded in the
UNIX command but useful to the user (the more the better);
5) Demonstrate that your script works for functions of the original UNIX
command presented in Full Requirements for both correct and wrong inputs
According to these criteria, you can get in this step 60 marks or less, i.e., your Step-2-Mark <= 60.
Now your Current-Mark = Step-1-Mark + Step-2-Mark.
4.3 Step 3:
if your Step-1-Mark < 40,
then your Final-Mark = Step-1-Mark. You have failed.
3
else
case Task in
Task from Section 5) # If your choice was the Task presented below,
your Final-Mark = Current-Mark. You have passed.
;;
*) # If you submitted something else, e.g., a coursework of previous years,
your Final-Mark = 0. You have failed.
;;
esac
fi
# There is another dangerous case, plagiarism... I do not recommend you... You definitely
fail in this case...
5. Task description
Write a shell script to ease and simplify the use of the UNIX paste utility (read the man paste
description).
Minimal Requirements:
The implementation must be interactive:
− Options and file names shall be inputted after program's prompts;
− The user shall be able merging files as many times as he/she wants without exiting the
program;
− A special user command shall allow leaving the program.
You may not implement options of the paste command.
Files from the file-list must be tested for existence and readability (by the test command).
Full Requirements:
Your implementation must cover -d 'list' and -s options.
Files in the file-list must be tested for anything what is possible to test (read the man test
description).
Your program must:
− Allow both relative and absolute pathname arguments (as the original command does);
− Process either filename arguments or standard input (as the original command does);
− Allow a list of filenames and filename wildcards (as the original command does);
− Allow output to be redirected (as the original command does).
The emphasis here should be put on providing specified facilities, which are straightforward to use
and provide full error checking with clear diagnostics messages.
# 2  
Old 12-12-2006
See rule 6 in the rules

Closed.
 
Login or Register to Ask a Question

Previous Thread | Next Thread
Login or Register to Ask a Question