RAQ2/mips webserver running Linux.
Current log output is a file named "access."  I want to grep (or otherwise
parse out) a single (previous) days log entries to a file named after the
appropriate date (ie, access-19991105), then I want to REMOVE the previous
days entry from the current log file ("access") so that only current days
entries remain (and get added to.)

Apparently getting the log restarted on a daily basis (especially with a
new date name) requires stopping Apache while the date string is updated,
nameing the file, then restarting Apache.  My approach is to 'steal' the
old day's data, then lop off the tail of the access log file while it
continues to collect current days data.  As long as the file/file handle
relationship remain the same, I think this will work.

I looked at the file scripts at both rebol.org and rebol.com without
finding any similar routine.  I assume I "load" the log file; but I have no
idea how to get rid of the lines I don't want.  

                                                - fleet -     

Reply via email to