Open main menu

CDOT Wiki β

Changes

OPS435 Online Assignment 2

44 bytes added, 21:29, 19 July 2020
Program Name and valid command line arguments
Name your Python3 script as <code>a2_[student_id].py</code>. Your script must accept one or more "file name" as its command line parameters and other optional parameters as shown below. Your python script should produce the following usage text when run with the --help option:
<pre>
[rchaneric@centos7 a1]$ python3 ./ura2.py -husage: ur_rchannew_template.py [-h] [-l {user,host}] [-r RHOST] [-t {daily,weekly,monthly}] [-u USER] [-s] [-v] F [F ...]
Usage Report based on the last command
-r RHOST, --rhost RHOST
usage report for the given remote host IP
-t {daily,weekly,monthly}, --type {daily,weekly,monthly} type of report: daily, or weekly, and monthly
-u USER, --user USER usage report for the given user name
-s, --seconds return times in seconds -v, --verbose tune turn on output verbosity Copyright 2020 - Eric Brauer
Copyright 2020 - Raymond Chan
</pre>
Replace the last line with your own full name .