From owner-freebsd-questions Thu Jun 29 14:15:24 2000 Delivered-To: freebsd-questions@freebsd.org Received: from manatee.mammalia.org (manatee.mammalia.org [216.231.50.6]) by hub.freebsd.org (Postfix) with ESMTP id 6B20937B5A9 for ; Thu, 29 Jun 2000 14:15:21 -0700 (PDT) (envelope-from rjoseph@mammalia.org) Received: by manatee.mammalia.org (Postfix, from userid 1000) id 6538111CD72; Thu, 29 Jun 2000 14:15:19 -0700 (PDT) Date: Thu, 29 Jun 2000 14:15:19 -0700 From: R Joseph Wright To: Drew Sanford Cc: freebsd-questions@FreeBSD.org Subject: Re: Zero'ing out files Message-ID: <20000629141519.A316@manatee.mammalia.org> References: <395BAFAC.2769ADA5@planetwe.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2i In-Reply-To: <395BAFAC.2769ADA5@planetwe.com>; from drew@planetwe.com on Thu, Jun 29, 2000 at 03:21:01PM -0500 Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On Thu, Jun 29, 2000 at 03:21:01PM -0500, Drew Sanford wrote: > Is there a way to zero out a file, and still leave it open, say for an > apache access log? If there is a simple way to rotate the access logs > (is there a way to make newsyslog work for this?) then you can answer > that one two if you like. My git instinct is that I'm going to have to > write a script and let cron run it, because I simply haven't seen > anything besides newsyslog that archives the old logs. Thanks in advance > for any help you can offer. How about "cat /dev/null > file" ? To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message