From owner-freebsd-questions@FreeBSD.ORG Wed Jul 20 09:06:17 2005 Return-Path: X-Original-To: freebsd-questions@freebsd.org Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 1DD0B16A41F for ; Wed, 20 Jul 2005 09:06:17 +0000 (GMT) (envelope-from igorr@speechpro.com) Received: from speechpro.com (speech-tech-2.ip.PeterStar.net [81.3.190.130]) by mx1.FreeBSD.org (Postfix) with ESMTP id B245443D46 for ; Wed, 20 Jul 2005 09:06:16 +0000 (GMT) (envelope-from igorr@speechpro.com) Received: from sysadm.stc ([192.168.2.26]) by s1.stc with esmtp (Exim 4.44 (FreeBSD)) id 1DvAWB-000N2J-VH for freebsd-questions@freebsd.org; Wed, 20 Jul 2005 13:05:32 +0400 Message-ID: <42DE13EE.2070506@speechpro.com> Date: Wed, 20 Jul 2005 13:05:50 +0400 From: Igor Robul User-Agent: Mozilla Thunderbird 1.0.2 (X11/20050518) X-Accept-Language: en-us, en MIME-Version: 1.0 To: freebsd-questions@freebsd.org References: In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Archived: Yes Subject: Re: problem with devfs 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: Wed, 20 Jul 2005 09:06:17 -0000 shmach@osprey.net wrote: >Hello everyone, > >I'm a CS student, and this previous semester I took a unix class where our >teacher gave us some code for an assignment, with the goal being to compile and >install it. The jist of it was the program created a device in /dev called >voice, which would "speak" whatever was written to it using festival. I >thought this was kinda spiffy, and tried to install it on my system at home, >freebsd 5.3. The program tries to write to /dev, and because 5.3 >uses devfs, /dev is read only, so it obviously fails. I thought that maybe using >mknod would allow me to create a device, but the man page for mknod states that >it can "be used to recreate deleted device nodes under a devfs(5) mount point by >invoking it using dummy arguments", but that doesn't really help me here as the >device node never existed in the first place. > > You can make device node or fifo not in /dev but in any other directory (for example in /tmp) and change path in your file.