Hi,
I need to set up a perl job which will process the lastest entries on an
IIS web logfile.

E.g. every (say) 5 mins, a job will run processing new additions to the
file.

What is the best way to go about this?

Should I (when the process runs):
1) read thru the IIS logfile until I reach the desired position
2) process the new records 
3) save the line number of the last (processed) record
4) exit

Or will this 'lock' IIS out of writing to the file during process time
(this is obviously highly undesireable!!!!)

If so, should I (when the process runs):
1) take a copy of the (possibly large) logfile
2) read thru the copy until desired position reached
3) process new records
4) save last line number
5) exit

Is this a better approach?


Any thoughts appreciated.

Regards

Joel



---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.401 / Virus Database: 226 - Release Date: 09/10/2002
 


-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to