From owner-freebsd-questions Thu Jan 3 7: 5:30 2002 Delivered-To: freebsd-questions@freebsd.org Received: from post.mail.nl.demon.net (post-10.mail.nl.demon.net [194.159.73.20]) by hub.freebsd.org (Postfix) with ESMTP id 60A4D37B417 for ; Thu, 3 Jan 2002 07:05:28 -0800 (PST) Received: from [212.238.194.207] (helo=tanya.raggedclown.net) by post.mail.nl.demon.net with esmtp (Exim 3.33 #1) id 16M9Qs-00056u-00 for freebsd-questions@freebsd.org; Thu, 03 Jan 2002 15:05:26 +0000 Received: by tanya.raggedclown.net (Postfix on SuSE Linux 7.3 (i386), from userid 500) id 79FC11176; Thu, 3 Jan 2002 16:05:25 +0100 (CET) Date: Thu, 3 Jan 2002 16:05:25 +0100 From: Cliff Sarginson To: freebsd-questions@freebsd.org Subject: Re: sh redirect optimization + fifos Message-ID: <20020103150525.GA9291@raggedclown.net> References: <200201031428.g03ESKO03852@chk.phattydomain.com> <20020103145026.GA8739@raggedclown.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20020103145026.GA8739@raggedclown.net> User-Agent: Mutt/1.3.24i Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On Thu, Jan 03, 2002 at 03:50:26PM +0100, Cliff Sarginson wrote: > On Thu, Jan 03, 2002 at 06:28:20AM -0800, chk no wrote: > > I don't think you can do this very elegantly in the shell. > I would suggest using message queues, and writing a little > program in perl,C or possibly awk, to do the reading. A Fifo will work well enough > for a data stream, or fixed length messages, but it ain't really > very handy for what you want to do. > Addenda, you won;t be able to use message queues with awk, but you might still get away with the fifo...with it... -- Regards Cliff To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message