Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!bcm!convex!usenet From: tchrist@convex.COM (Tom Christiansen) Newsgroups: comp.unix.wizards Subject: Re: Unbuffered pipe(2)'s? Keywords: pipe,popen,buffer Message-ID: <1991Feb07.211021.8761@convex.com> Date: 7 Feb 91 21:10:21 GMT References: <1991Feb7.200815.3880@odin.corp.sgi.com> Sender: usenet@convex.com (news access account) Reply-To: tchrist@convex.COM (Tom Christiansen) Organization: CONVEX Software Development, Richardson, TX Lines: 19 Nntp-Posting-Host: pixel.convex.com From the keyboard of gavin@krypton.asd.sgi.com (Gavin Bell): :Is there any way to turn off the PIPE_MAX-long buffer used for pipes? :I need simple unbuffered, one-way communication. : :Details on what I'm trying to do: : :Essentially, I have the following situation: : :filter1 < file_of_data | filter2 If you have the code for filter1, just unbuffer stdout, or fflush it at will. If you don't, there's little you can do, as the buffering is occurring in the stdio library contained in the program. Unbelievably grody hacks mucking with the FILE struct using some binary patch not withstanding, nor suggested. --tom -- "All things are possible, but not all expedient." (in life, UNIX, and perl)