Changes

Jump to: navigation, search

OPS435 Python Assign 2 2018 Fall

121 bytes removed, 22:53, 3 November 2018
Instructions
=== Program Name and valid command line arguments ===
Name your Python3 program script as <code>urur_[student_id].py</code>. The program should Your script must accept one or more "file name" as its command line parameters and other optional parameters as shown below. Your ur.py python script should produce the following usage text when run with the --help option:
<pre>
[rchan@centos7 a1]$ python3 ./ur.py -h
usage: urur_rchan.py [-h] [-l {user,host}] [-r RHOST] [-t {daily,weekly,monthly}]
[-u USER] [-v]
F [F ...]
Replace the last line with your own full name
 
If one of the file name given is "last", your python program should get the login records from the 'last' command with the appropriate flags.
If there is one file name provided at the command line, read the login records from the contents of the given file. The format of each line in the file should be the same as the output of 'last -Fiw'.
1,760
edits

Navigation menu