I'm having trouble disabling buffering input from a read pipe. I'm using
popen() to create the pipe, and fgets to read the pipe. I'm getting the
input in large chunks, and none 'til the buffer fills. I'd like to get the
output as it is being produced, but all attempts to use ioctl(), fcntl()
and nbuf() were unsuccessful.
One guess I have is that I have to use pipe() so that I can alter these
settings from the child process before execing the command. I was
hoping to disable buffering by using the file pointer returned by popen().
--Henry Cookson
--Computer Sciences Corp.