PERL
IN PERL OR BASH
I. Develop a basic archiving tool.
÷ To be run everyday
÷ Identifies and processes files that have not been accessed in X days.
÷ Move identified files to a different directory.
file in attachments must open in Linux
¡ Steps
÷ Create a test environment
÷ How do you create “old” files?
÷ How do you create them again?
II. Write a script that will analyze the Apache web server access log file: access_log.1998-12.gz
¡ 127.0.0.1 - frank [10/Oct/2000:13:55:36 -0700] "GET /apache_pb.gif HTTP/1.0" 200 2326
To create the following report:
¡ WEBLOG REPORT GENERATOR by I.M. Kuhl==========================================
¡ Report covers the period from 18-Dec-2003 at 19:26:16 to 24-Dec-2003 at 18:37:47.
¡ There were 456 hits in 7 days for an average of 65 hits/day.
¡ The busiest time for this log period was 19-Dec-2003 between 10:00pm and 10:59pm (17%).
¡ The most hits were from: 111.22.33.44 (15%) 111.2.5.6 (14%) 129.21.26.133 (12%).







