Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Posting-Version: version B 2.10.1 6/24/83 (MC830713); site erix.UUCP Path: utzoo!linus!philabs!mcvax!enea!erix!per From: per@erix.UUCP (Per Hedeland XT/DU) Newsgroups: net.unix,net.unix-wizards Subject: Re: Pipe buffering query Message-ID: <119@erix.UUCP> Date: Fri, 25-Nov-83 06:06:12 EST Article-I.D.: erix.119 Posted: Fri Nov 25 06:06:12 1983 Date-Received: Sun, 27-Nov-83 03:02:56 EST References: <254@bnl.UUCP> Organization: L M Ericsson, Stockholm, Sweden Lines: 10 The problem is not the buffering in the pipe, but the buffering done by the stdio package when standard output isn't a terminal. Provided you can modify the source code of the filter, the fix is simple. Just insert: setbuf(stdout, NULL); before you start writing to stdout; this makes stdout unbuffered. (BTW, 'cat -u | mail' works (almost) fine.) Per Hedeland ...{!mcvax}!enea!erix!per