• We did not send an email asking for donations - please read this post.

How to do this?On the test server, (as a bash one liner)

C

Cowboy1985

Guest
On the test server, (as a bash one liner)
a) Schedule the following task to run hourly
b) List all users IP�s that experienced a fav icon not found error,
c) Sort the data by IP Address,
d) Count the number of time each IP was affected,
e) Put that report into a file
f) & email the report to [email protected].


can anyone help?
 


OP
R

Rob

Guest
That almost sounds like a homework question :)

Here are some hints..

1. You'll want to look in the httpd access log and look for a common string for the fav icon not found error

2. You'll want to use awk to print the column with the IP.. use uniq to show counts for each one.. use sort to sort by IP or by count

3. print it to a file

4. mail the file as an attachment using the mail command
 
$100 Digital Ocean Credit
Get a free VM to test out Linux!

Linux.org Hosting Donations
Consider making a donation

Staff online

Members online


Top