@www.csse.monash.edu.au |
| Assessment | Contacts | Laboratories | Lectures | Resources | Timetables | Tutorials | Unit Outline |
| Last modified: 20080825:085636/Added material about submission name and use of public svn | FIT2022 AJH-2008-20 |
Assignment 1: A Python Shell | Use of SVN
The Shell or Command Line Interpreter is the fundamental User interface to an operating system. Your assignment is to write a simple shell, called myshell.py, in Python, that has the following properties:
programname arg1 arg2 <inputfile >outputfilewill execute the program programname with arguments arg1 and arg2, the stdin FILE stream replaced by inputfile and the stdout FILE stream replaced by outputfile.
With output redirection, if the redirection character is > then the outputfile is created if it does not exist, and truncated (to empty) if it does. If the redirection token is >> then outputfile is created if it does not exist, and appended to if it does.
Check the Wiki Page for helpful hints. For example, this program might be useful.
A marking quide is available.
You should submit all your python files necessary for the shell as a zipped archive through the Moodle assignment 1 submission mechanism. Name the zip file yourStudentID.zip
It has come to my attention that several students have put their assignments in the public space of the svn repositories. Not only is this contrary to the instructions given in lectures about the use of svn, it also contravenes university policy.
Students whose work is found in the public areas will have the work removed, and will receive NO marks for the assignment. I will offer a period of grace in this case, and if anyone wishes to acknowledge that they a) mistakenly placed their work in a public area, or b) used any submissions in the public area to construct their own submissions, then I will waive the penalty.
This offer will stand until Wednesday, 27 Aug, 12noon.
| 20080825:085636 | 2.0.4 | ajh | Added material about submission name and use of public svn |
| 20080812:114938 | 2.0.3 | ajh | Added link to wiki assignments page |
| 20080801:095042 | 2.0.2 | ajh | corrected myshell.py references and updated marking guide |
| 20080724:124410 | 2.0.1 | ajh | updated with questions 4 and 5 |
| 20080712:140751 | 2.0.0 | ajh | first version for 2008 |
| This page maintained by John Hurst. Copyright Monash University Copyright Policy |
| ||
Generated at 20090705:1754 from an XML file modified on 20080828:1547 | |||