From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 21671 invoked from network); 9 Oct 2006 16:14:41 -0000 X-Spam-Checker-Version: SpamAssassin 3.1.6 (2006-10-03) on f.primenet.com.au X-Spam-Level: X-Spam-Status: No, score=-2.5 required=5.0 tests=BAYES_00,FORGED_RCVD_HELO autolearn=ham version=3.1.6 Received: from news.dotsrc.org (HELO a.mx.sunsite.dk) (130.225.247.88) by ns1.primenet.com.au with SMTP; 9 Oct 2006 16:14:41 -0000 Received-SPF: none (ns1.primenet.com.au: domain at sunsite.dk does not designate permitted sender hosts) Received: (qmail 62298 invoked from network); 9 Oct 2006 16:14:33 -0000 Received: from sunsite.dk (130.225.247.90) by a.mx.sunsite.dk with SMTP; 9 Oct 2006 16:14:33 -0000 Received: (qmail 26739 invoked by alias); 9 Oct 2006 16:14:24 -0000 Mailing-List: contact zsh-users-help@sunsite.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 10817 Received: (qmail 26727 invoked from network); 9 Oct 2006 16:14:22 -0000 Received: from news.dotsrc.org (HELO a.mx.sunsite.dk) (130.225.247.88) by sunsite.dk with SMTP; 9 Oct 2006 16:14:22 -0000 Received: (qmail 61037 invoked from network); 9 Oct 2006 16:14:22 -0000 Received: from happygiraffe.net (81.6.215.59) by a.mx.sunsite.dk with SMTP; 9 Oct 2006 16:14:22 -0000 Received: from localhost (localhost.happygiraffe.net [127.0.0.1]) by happygiraffe.net (Postfix) with ESMTP id EAD43B890 for ; Mon, 9 Oct 2006 17:13:47 +0100 (BST) X-Virus-Scanned: amavisd-new at happygiraffe.net Received: from happygiraffe.net ([127.0.0.1]) by localhost (gimli.happygiraffe.net [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 5vYd4bMIoB0i for ; Mon, 9 Oct 2006 17:13:47 +0100 (BST) Received: by happygiraffe.net (Postfix, from userid 1001) id B293AB894; Mon, 9 Oct 2006 17:13:47 +0100 (BST) Date: Mon, 9 Oct 2006 17:13:47 +0100 To: zsh-users@sunsite.dk Subject: Re: quickesy way to zero HUGe log files Message-ID: <20061009161347.GB92051@gimli.happygiraffe.net> References: <20061009073941.GA17078@localhost.localdomain> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20061009073941.GA17078@localhost.localdomain> User-Agent: Mutt/1.5.13 (2006-08-11) From: dom@happygiraffe.net (Dominic Mitchell) On Mon, Oct 09, 2006 at 09:39:41AM +0200, Stanislaw Halik wrote: > On Mon, Oct 09, 2006, zzapper wrote: > > May be O/T what would be the quickest way to zero my huge "in use" Apache > > log files?. I usually vim them, but they've got so huge that that's a pain > > Truncate them to 0 bytes? ": > /log/file" will do. "cp /dev/null /log/file" is another way. The only reason I mention it is that I find it easier in combination with sudo. -Dom