Please can anyone help me with this ----- I am very new in learning python.
This program should report the total number of successful web server accesses and, if the -p "projectname" option is given then the program should report the number of accesses (in total and as a percentage) under this project. the program should also use a -f option to indicate which web server log file is to be summarised. For example a system administrator might use the program in the following way:
$ ./webscan.py -f access.data
indicates that the total number of accesses as logged in access.data will be displayed.
$ ./webscan.py -f access.data -p /pipermail
indicates that the total number of web server accesses are displayed together with the number of web server accesses in the pipermail folder.
examples
$ ./webscan.py -f access.data
Total number of accesses: 6
$ ./webscan.py -f access.data -p /pipermail
Total number of accesses: 6
Number of accesses in pipermail: 3 (50%)
Thanks