From mboxrd@z Thu Jan 1 00:00:00 1970 To: 9fans@cse.psu.edu From: Hermann Samso Message-ID: <9gb55c$gl$1@newsserver.rrzn.uni-hannover.de> References: <00bb01c0f2d8$304f6060$6401a8c0@freeze2k>, <0dcc01c0f2db$14720430$e8b7c6d4@SOMA> Subject: Re: [9fans] help, i'm in a wet paper bag and I can't get out Date: Fri, 15 Jun 2001 08:27:07 +0000 Topicbox-Message-UUID: b9ce1158-eac9-11e9-9e20-41e7f4b1d025 Boyd Roberts wrote: >> 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. With so many snippets of code, everyone could make use of, isn't there any common repository? Or will they allget integrated in time for next release? Ok, there is always Deja News, but... saludos, hermann samso