Daniel Crookston wrote:
Jacob,
    head -n (number of lines) access_log > access_log
That should do it, no?
Daniel

Duh, I should have thought of that. I don't know if head will let you use the same file as input and output (I know cat doesn't), but I can easily send it somewhere else then move the new one over top of the old one. I'll just run that in a cron job nightly (it might be a little slow to run every time someone hits the page) and everyone should be happy.


Thanks, Dan.

Jacob


____________________
BYU Unix Users Group http://uug.byu.edu/ ___________________________________________________________________
List Info: http://uug.byu.edu/cgi-bin/mailman/listinfo/uug-list

Reply via email to