From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: "Joe Casadonte" Newsgroups: gmane.emacs.help Subject: truncating log files (fifo) Date: 11 Sep 2002 14:14:57 -0400 Organization: Llama Fresh Farms, Neare Paraguay Sender: help-gnu-emacs-admin@gnu.org Message-ID: NNTP-Posting-Host: localhost.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: main.gmane.org 1031768862 4065 127.0.0.1 (11 Sep 2002 18:27:42 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Wed, 11 Sep 2002 18:27:42 +0000 (UTC) Return-path: Original-Received: from hermes.netfonds.no ([80.91.224.195]) by main.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 17pCDC-00013G-00 for ; Wed, 11 Sep 2002 20:27:38 +0200 Original-Received: from monty-python.gnu.org (monty-python.gnu.org [199.232.76.173]) by hermes.netfonds.no (8.12.1/8.12.1) with ESMTP id g8BIRk9e016268 for ; Wed, 11 Sep 2002 20:27:47 +0200 (CEST) Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.10) id 17pCDJ-00009X-00; Wed, 11 Sep 2002 14:27:45 -0400 Original-Path: shelby.stanford.edu!nntp.stanford.edu!newsfeed.stanford.edu!logbridge.uoregon.edu!sn-xit-03!sn-xit-06!sn-post-01!supernews.com!corp.supernews.com!not-for-mail Original-Newsgroups: gnu.emacs.help User-Agent: Gnus/5.0808 (Gnus v5.8.8) Emacs/21.2 Original-X-Complaints-To: abuse@supernews.com Original-Lines: 23 Original-Xref: nntp.stanford.edu gnu.emacs.help:104764 Original-To: help-gnu-emacs@gnu.org Errors-To: help-gnu-emacs-admin@gnu.org X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.0.11 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: Xref: main.gmane.org gmane.emacs.help:1319 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:1319 I want to write to a log file, and have a maximum number of lines, such that when the max is exceeded, the oldest lines (the ones at the beginning of the file) are lopped off. Not terribly difficult to do, but if there's a package that does something like this already, I'd rather not re-invent the wheel. Does anyone know of anything? Thanks! -- Regards, joe Joe Casadonte jcasadonte@northbound-train.com ------------------------------------------------------------------------------ Llama Fresh Farms => http://www.northbound-train.com Gay Media Resource List => http://www.northbound-train.com/gaymedia.html Perl for Win32 => http://www.northbound-train.com/perlwin32.html Emacs Stuff => http://www.northbound-train.com/emacs.html Music CD Trading => http://www.northbound-train.com/cdr.html ------------------------------------------------------------------------------ Live Free, that's the message! ------------------------------------------------------------------------------