Changes

Jump to: navigation, search

OPS435 Python Assignment 2

456 bytes added, 15:59, 14 March 2019
Bonus item 10% extra
== Suggested Script Development and Testing ==
The following python functions (to be created) are useful in handling the following sub-tasks:
* gets login records from the output of "last" command and filters out unwanted records
* reads login records from files and filters out unwanted records
* generate convert login records into proper python object type so that it can be processed using as much built-in functions as possible * create function which generates daily usage reports by user and/or by remote host* generate create function which generates weekly usage reports by user and/or by remote host* generate create function which generates monthly usage reports by user and/or by remote host
To help you with this assignment, [[OPS435 A1 Usage Report Template|here is a template]] you can use as a starting point in designing your own Python Usage Report script.
|}
== Bonus item 10% extra ==
* Create a function to capture that output of the 'last -Fiw' on the system your script is being executed and return the contents in the type of object as what you get from a regular login/logout record file.
* Call this function and use the objects it returned when the file name input at the command line is 'last'.
== Submission ==
After fully testing your program, submit your python script ur_[student_id].py and your algorithm and program design report ur_[student_id].pdf in pdf format on Blackboard by April 5th, 2019.
1,760
edits

Navigation menu