It doesn't work, but this does: tail -n 1000 access_log > access_log2; mv access_log2 access_log
(I said head first, but you want to tail it. My bad.) This won't avoid a situation where Apache tries to write to the log file between the execution of those two commands, but I think in general you should be fine. Daniel > Jacob, > head -n (number of lines) access_log > access_log > That should do it, no? > Daniel ____________________ BYU Unix Users Group http://uug.byu.edu/ ___________________________________________________________________ List Info: http://uug.byu.edu/cgi-bin/mailman/listinfo/uug-list
