Date: Fri, 29 Mar 2002 16:40:26 -0800 From: Matthew Hunt <mph@astro.caltech.edu> To: esoha@attbi.com Cc: ports@freebsd.org Subject: Re: Bento errorlogs and /dev/fd/* Message-ID: <20020329164026.B81336@wopr.caltech.edu> In-Reply-To: <20020330003458.DONW1214.rwcrmhc54.attbi.com@rwcrwbc57>; from esoha@attbi.com on Sat, Mar 30, 2002 at 12:34:57AM %2B0000 References: <20020330003458.DONW1214.rwcrmhc54.attbi.com@rwcrwbc57>
next in thread | previous in thread | raw e-mail | index | archive | help
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 <mph@astro.caltech.edu> * 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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20020329164026.B81336>