From owner-freebsd-ports Fri Mar 29 16:57:35 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 A18DE37B419 for ; Fri, 29 Mar 2002 16:57:32 -0800 (PST) Received: (from mph@localhost) by wopr.caltech.edu (8.11.6/8.9.3) id g2U0vSc81928; Fri, 29 Mar 2002 16:57:29 -0800 (PST) (envelope-from mph) Date: Fri, 29 Mar 2002 16:57:28 -0800 From: Matthew Hunt To: esoha@attbi.com Cc: ports@freebsd.org Subject: Re: Bento errorlogs and /dev/fd/* Message-ID: <20020329165728.A81849@wopr.caltech.edu> References: <20020330005346.ZOZS1147.rwcrmhc52.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: <20020330005346.ZOZS1147.rwcrmhc52.attbi.com@rwcrwbc57>; from esoha@attbi.com on Sat, Mar 30, 2002 at 12:53:44AM +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 Eyal, On Sat, Mar 30, 2002 at 12:53:44AM +0000, esoha@attbi.com wrote: > The right thing to do is re-write crafty to allow those > commands from something other than stdin, or allow crafty > to suck in both commands and the data from stdin, like > how SMTP goes into data mode after the DATA command. Can > we rewrite crafty? No, we can't, but you've got the problem pegged. :-) > Assuming that we can't, how about using mknod to make a > node? I don't like that because I don't know how to test > if the node isn't already in use. Maybe start with 100 > and count until /dev/fd/x doesn't exist, then mknod > /dev/fx/x and use that. unlink it when you're done. I think you're onto something... what about using mkfifo(1) to make a named pipe somewhere in the port's work directory and feeding the uncompressed data to crafty through that? Should work, I think... Thanks! 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