Hi, I am tring to create a userlog that logs certains users moves. I start by creating a new file that in named the date, ie. 081102. I then add events to it. This is easy but i have a server that updates every 30 seconds. If i have 10 users online doing the same thing i get a very repetetive log. How do i check for duplicate logs etc etc.
Any help would be great.
Regards Jules
if you are in a unix environment you can use the grep command from the shell
somthing like
cat access_log | grep $1 | wc -1
so like you can put that in a shell script file
and run it
./hits banner
$1 = the file or directory count