Changes

Jump to: navigation, search

OPS435 Online Assignment 2

163 bytes added, 14:06, 20 July 2020
Program Name and valid command line arguments
Replace the last line with your own full name.
Compare the usage output you have now with the one above. There is one option missing, you will need to change the <code>argparse</code> function to implement it.
If there is only one file name provided at the command line, read the login/logout records from the contents of the given file. If the file name is "online", get the record on the system your script is being execute using the Linux command "last -iwF". The format of each line in the file should be the same as the output of 'last -Fiw'. Filter out incomplete login/logout record (hints: check for the number of fields in each record).

Navigation menu