384
edits
Changes
update deadlines for fall
'''Due Date:''' Please follow the three stages of submission schedule:
* Complete the requirements for the first milestone and push to GitHub by April 4November 25, 2021 2022 by 11:59 PM,* Complete the requirements for the second milestone and push to GitHub by December 2, 2022 by 11:59 PM,* Complete the your Python script and push to GitHub by April 18, 2021 December 9 2022 at 11:59 PM, and* Copy your Python script into a Word document and submit to Blackboard by April 18December 9, 2021 2022 at 11:59 PM.
==Overview==
* the <b>os, sys</b> modules
* the <b>argparse</b> module
* The <b>datetime</b> module
* The <b>subprocess</b> module
== Instructions ==
-v, --verbose turn on output verbosity
Copyright 2021 2022 - Eric Brauer
All your Python codes for this assignment must be placed in a <font color='red'><b><u>single source file</u></b></font>. Please include the following declaration by <b><u>you</u></b> as the <font color='blue'><b>script level docstring</b></font> in your Python source code file (replace [Student_id] with your Seneca email user name, and "Student Name" with your own name):
<source>OPS435 Assignment 2 - Winter 2021Fall 2022
Program: assignment2.py
Author: "Student Name"
=== Sample Outputs ===
The following are the reports generated by the usage report script (ur.py) with the "usage_data_file" mentioned in the overview section. You can download the file [https://scs.senecac.on.ca/~raymond.chan/ops435/a2/usage_data_file here] to test your ur.py script.
==== User List ====
The following is the user list extracted from the usage_data_file created by the command:
<pre>
[eric@centos a2]$ ./a2assignment2.py -u rchan -t daily usage_data_file
</pre>
The following is a Daily Usage Report created for the Remote Host 10.40.105.103 by the command:
<pre>
[eric@centos7 a2]$ ./a2assignment2.py -r 10.40.105.130 -t daily usage_data_file
</pre>
<pre>
Weekly Usage Report for 10.4340.115105.162130
=====================================
Date Usage
Running the script with <B>no filename</b> as a file argument should call a subprocess.Popen object and run the command <code>last -Fiw</code>.
<pre>
[eric@mtrx-node06pd ~]$ ./a2assignment2.py -l user
</pre>
<pre>
[eric@mtrx-node06pd ~]$ ./a2assignment2.py -u adas20 -t daily
</pre>
=== First Milestone ===
=== Python script coding and debugging ===
! Task !! Maximum mark !! Actual mark
|-
| Algorithm Submission First Milestone || 10 ||
|-
| Check Script Results || 30 ||
| List Functions || 5 ||
|-
| Daily/Monthly Weekly Functions || 10 ||
|-
| Output Date Functions || 5 ||
|-
| Other Output/other Functions || 5 ||
|-
| Overall Design/Coherence || 10 ||
== Submission ==
* Stage 1: Complete the first milestone on GitHub by April 4November 25, 20212022.* Stage 2: Complete the second milestone on GitHub by December 2, 2022.* Stage 3: Use commits to push your python script for this assignment to Github.com. The final state of your repository will be looked at on April 18December 9, 2021 2022 at 11:59 PM.* Stage 34: Copy your python script into a Word document and submit to Blackboard by April 18December 9, 2021 2022 at 11:59 PM.