From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: <0dcc01c0f2db$14720430$e8b7c6d4@SOMA> From: "Boyd Roberts" To: <9fans@cse.psu.edu> References: <00bb01c0f2d8$304f6060$6401a8c0@freeze2k> Subject: Re: [9fans] help, i'm in a wet paper bag and I can't get out MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Date: Tue, 12 Jun 2001 03:00:31 +0200 Topicbox-Message-UUID: b4fafe7a-eac9-11e9-9e20-41e7f4b1d025 > I got this far but of course (I can say that now) > the `{..} doesn't return until $netdir/data sends an eof > and then prints each line well, obviously. it's a file isn't it? > so how do i read a line at a time before `{..} closes it's stdout? write some C program that that reads _unbuffered_ characters and spits them until it sees 'end of line' (whatever that may be). you should buffer the output, but _not_ the input. can't be more than 20 lines of code. btw: i hope you're dealing with 8 bit chars 'cos latin-1 will really screw up utf encoded streams that the rest of the system expects. years ago i wrote (on ultrix) riso [rune to iso-latin-1] and isor (pronounced eye-sore) filters so that the unix sam could deal with the few french docs i had to deal with.