From owner-freebsd-current@FreeBSD.ORG Wed Jun 4 06:44:36 2003 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 6194D37B401 for ; Wed, 4 Jun 2003 06:44:36 -0700 (PDT) Received: from mailhub.fokus.fraunhofer.de (mailhub.fokus.fraunhofer.de [193.174.154.14]) by mx1.FreeBSD.org (Postfix) with ESMTP id 376AE43F75 for ; Wed, 4 Jun 2003 06:44:35 -0700 (PDT) (envelope-from brandt@fokus.fraunhofer.de) Received: from beagle (beagle [193.175.132.100])h54DiSv16688; Wed, 4 Jun 2003 15:44:28 +0200 (MEST) Date: Wed, 4 Jun 2003 15:44:28 +0200 (CEST) From: Harti Brandt To: Marc Olzheim In-Reply-To: <20030604133019.GA50874@stack.nl> Message-ID: <20030604154219.K614@beagle.fokus.fraunhofer.de> References: <20030604133019.GA50874@stack.nl> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII cc: current@freebsd.org Subject: Re: devfs and /dev/fd/3 X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 04 Jun 2003 13:44:36 -0000 On Wed, 4 Jun 2003, Marc Olzheim wrote: MO>Hi. MO> MO>I've seen the question once before, but it was not answered (on-list ?), MO>so now that I run in on it, I'd like to know what to do: MO> MO>On FreeBSD 4.x, without devfs, the following worked: MO>( echo foo | tee /dev/fd/3 | tr f F ) 3>&1 MO> MO>It should produce both "foo" and "Foo" MO> MO>FreeBSD 5 with devfs, however, does not create a /dev/fd/3 upon opening MO>filedescriptor 3 by the shell, so there's no device to write to... MO> MO>How can I fix or circumvent this, aside from mounting a ufs partition MO>with mknod-ed files over /dev/fd ? You must mount -tfdescfs fdesc /dev/fd but your example doesn't work even then (although it gives no error). Don't know why. harti -- harti brandt, http://www.fokus.fraunhofer.de/research/cc/cats/employees/hartmut.brandt/private brandt@fokus.fraunhofer.de, harti@freebsd.org