Changes

Jump to: navigation, search

OPS435 Python Assign 2 2018 Fall

185 bytes added, 22:48, 3 November 2018
Overview
==Overview==
Most system administrators would like to know the utilization of their systems by their users. On a Linux system, each user's login records are normally stored in the binary file /var/log/wtmp. The login record records in this binary file can not be viewed or edited directly using normal Linux text commands like 'less', 'cat', etc. The 'last' command is often used to display the login records stored in this file in a human readable form. Please check the man page of the 'last' command for available options. The following listing is a sample output of the 'last' command with the '-F' flag on:
<pre>
$ last -F
</pre>
In this assignment, your task duty is to create a python program to produce # work out an algorithm for producing daily, weekly, and monthly usage reports by user or by remote host based on the information obtained from the 'last' command or given files which contain similar information as the 'last' command. # Once you believe you have a workable algorithm, you should then identify all the different tasks in your algorithm, and finally# implement your solution using a python script.
== Resource for useful modules ==
1,760
edits

Navigation menu