From owner-freebsd-questions@FreeBSD.ORG Mon Sep 24 11:14:53 2007 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 0B57616A417 for ; Mon, 24 Sep 2007 11:14:53 +0000 (UTC) (envelope-from erikt@midgard.homeip.net) Received: from ch-smtp02.sth.basefarm.net (ch-smtp02.sth.basefarm.net [80.76.149.213]) by mx1.freebsd.org (Postfix) with ESMTP id 797E513C480 for ; Mon, 24 Sep 2007 11:14:52 +0000 (UTC) (envelope-from erikt@midgard.homeip.net) Received: from c83-253-31-60.bredband.comhem.se ([83.253.31.60]:56910 helo=falcon.midgard.homeip.net) by ch-smtp02.sth.basefarm.net with esmtp (Exim 4.66) (envelope-from ) id 1IZltr-0008VW-7y for freebsd-questions@freebsd.org; Mon, 24 Sep 2007 13:14:51 +0200 Received: (qmail 14164 invoked from network); 24 Sep 2007 13:14:48 +0200 Received: from owl.midgard.homeip.net (10.1.5.7) by falcon.midgard.homeip.net with ESMTP; 24 Sep 2007 13:14:48 +0200 Received: (qmail 87648 invoked by uid 1001); 24 Sep 2007 13:14:48 +0200 Date: Mon, 24 Sep 2007 13:14:48 +0200 From: Erik Trulsson To: David Southwell Message-ID: <20070924111448.GA87613@owl.midgard.homeip.net> Mail-Followup-To: David Southwell , freebsd-questions@freebsd.org, Dan Nelson References: <200709221052.41399.david@vizion2000.net> <20070922190041.GK7562@dan.emsphone.com> <200709240409.56605.david@vizion2000.net> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <200709240409.56605.david@vizion2000.net> User-Agent: Mutt/1.5.16 (2007-06-09) X-Originating-IP: 83.253.31.60 X-Scan-Result: No virus found in message 1IZltr-0008VW-7y. X-Scan-Signature: ch-smtp02.sth.basefarm.net 1IZltr-0008VW-7y 848c0e4cdb1dd4a70ea1b13744938961 Cc: Dan Nelson , freebsd-questions@freebsd.org Subject: Re: stdout -determining size of?? X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 24 Sep 2007 11:14:53 -0000 On Mon, Sep 24, 2007 at 04:09:56AM -0700, David Southwell wrote: > On Saturday 22 September 2007 12:00:41 Dan Nelson wrote: > > In the last episode (Sep 22), David Southwell said: > > > How is the the size of stdout controlled. > > > > > > My query comes about because I had a shell running for ages with > > > unlimited history and found it had gobbled uyp all the space available to > > > stdout!!! > > > > Could you provide the error message that made you think that stdout has > > a limit? "stdout" could be anything: tty, socket, pipe, file, etc. If > > you have redirected stdout from a script to a file, like "ls > ls.txt", > > then it's possible that you filled up a filesystem. > > Here is what made me ask the question: > ------------------------------ > Weekly output report: > > Cleaning up kernel database files: > > Rebuilding locate database: > locate.code: stdout: No space left on device Here stdout was almost certainly re-directed to some file on the disk. Unfortunately the disk was full. > > Rebuilding whatis database: > > -- End of weekly output -- > ___________________________ > > After getting the message I dumped the history and locate.updatedb ran without > any problem. The shells history is probably stored in a file on the disk. When you removed that file the space became available again. It looks like you simply filled up the filesystem. Nothing to do with 'the size of stdout'. -- Erik Trulsson ertr1013@student.uu.se