[p4] log file keeps on growing, truncate it how?

Jeff Grills jgrills at junctionpoint.com
Fri Apr 21 09:20:31 PDT 2006


I would worry a bit about the length of time zip will have to have the file
open to compress the data while perforce is running and potentially
attempting to append to the file.  Personally I'd feel better sticking with
renaming the log file, and then compressing the renamed file.

j

-----Original Message-----
From: perforce-user-bounces at perforce.com
[mailto:perforce-user-bounces at perforce.com] On Behalf Of Ivey, William
Sent: Friday, April 21, 2006 10:33 AM
To: perforce-user at perforce.com
Subject: Re: [p4] log file keeps on growing, truncate it how?

I just run something like 
	zip -m p4d_log_01.zip p4d.log

The -m causes zip (I use info-zip) to remove the log file once it's
been archived.) Then the server creates a new one. As long as your
server version is 2003.1 or better, that should work.

-Wm




More information about the perforce-user mailing list