Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!yale!cmcl2!kramden.acf.nyu.edu!brnstnd From: brnstnd@kramden.acf.nyu.edu (Dan Bernstein) Newsgroups: comp.unix.programmer Subject: Re: How do I keep a pipe from buffering I/O? Message-ID: <13986:Feb2706:35:0491@kramden.acf.nyu.edu> Date: 27 Feb 91 06:35:04 GMT References: <1585@gufalet.let.rug.nl> <1991Feb27.014643.7915@convex.com> Organization: IR Lines: 13 In article <1991Feb27.014643.7915@convex.com> tchrist@convex.COM (Tom Christiansen) writes: > : How do I force the pipes to pass on text one line at a time? > You must have control of the program that's doing the output. If you > don't have that program's source code, you're out of luck. Uh, no. On BSD machines you just run ``pty program'' instead of ``program'', and if ``program'' uses stdio it will buffer as if it were talking to a tty. This solves the problem at hand. If you don't have the program's source code, and you're using System V, you're out of luck. ---Dan