Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 29 Jun 2000 14:15:19 -0700
From:      R Joseph Wright <rjoseph@manatee.mammalia.org>
To:        Drew Sanford <drew@planetwe.com>
Cc:        freebsd-questions@FreeBSD.org
Subject:   Re: Zero'ing out files
Message-ID:  <20000629141519.A316@manatee.mammalia.org>
In-Reply-To: <395BAFAC.2769ADA5@planetwe.com>; from drew@planetwe.com on Thu, Jun 29, 2000 at 03:21:01PM -0500
References:  <395BAFAC.2769ADA5@planetwe.com>

next in thread | previous in thread | raw e-mail | index | archive | help
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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20000629141519.A316>