From owner-freebsd-ports Fri Mar 29 16:40:31 2002 Delivered-To: freebsd-ports@freebsd.org Received: from wopr.caltech.edu (wopr.caltech.edu [131.215.103.10]) by hub.freebsd.org (Postfix) with ESMTP id D4CD937B41F for ; Fri, 29 Mar 2002 16:40:27 -0800 (PST) Received: (from mph@localhost) by wopr.caltech.edu (8.11.6/8.9.3) id g2U0eQ581672; Fri, 29 Mar 2002 16:40:26 -0800 (PST) (envelope-from mph) Date: Fri, 29 Mar 2002 16:40:26 -0800 From: Matthew Hunt To: esoha@attbi.com Cc: ports@freebsd.org Subject: Re: Bento errorlogs and /dev/fd/* Message-ID: <20020329164026.B81336@wopr.caltech.edu> References: <20020330003458.DONW1214.rwcrmhc54.attbi.com@rwcrwbc57> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <20020330003458.DONW1214.rwcrmhc54.attbi.com@rwcrwbc57>; from esoha@attbi.com on Sat, Mar 30, 2002 at 12:34:57AM +0000 Sender: owner-freebsd-ports@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org Hi again Eyal, On Sat, Mar 30, 2002 at 12:34:57AM +0000, esoha@attbi.com wrote: > cat rock.* | gzip -dc | book create /dev/stdin 60 3 | > crafty No, "book create" is not a shell command, it is a crafty command. That is, crafty's stdin can consist *only* of the line "book create ..." The unzipped rock.* must also be provided to crafty, but not on stdin. > As I see it, if each step has one input and one output, > stdin and stdout should be enough. No? No, crafty has two inputs, the command ("book create foo 60 3") which has to be on stdin, and the output of "cat rock.* | gzip -dc" which has to be somewhere else, and is the "foo" in the "book create" command. If you had a very big disk, the naive and simple thing to do is: cat rock.* | gzip -dc > enormous-file echo "book create enormous-file 60 3" | crafty rm enormous-file However, this requires 300+ MB of disk space more than it really needs to, and is slower. Matt -- Matthew Hunt * Stay close to the Vorlon. http://www.pobox.com/~mph/ * To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-ports" in the body of the message