Posted by Jasen Betts on 02/11/06 02:24
On 2006-02-10, Pete <> wrote:
> I'm having some log files from different php scripts on my website. I would
> like to make script that reduces the log files to 500 lines, etc., when I
> think they are growing too big. What is the best way to do this? The only
> way I know is to import the file into an array and write back the latest 500
> lines, but is there a better way?
man 1 tail
--
Bye.
Jasen
[Back to original message]
|