Hello,
I am writing an application that will access an existing
command-line tool. It does so using Xt Input callbacks,
with stdin and stdout from the forked command-line tool process.
Unfortunately, the command-line tool won't seem to dump
its buffer when I pipe it to the parent (my app). I have tried my
program on other command-line programs (e.g. bc) and it works fine.
How can I force it to dump its buffer? I am running HPUX8.0
(Since I can't modify the command-line tool, I can't do
an fflush from that process)
Also, why would this tool not empty its buffer when forked
and run with execlp, when it necessarily does so as a foreground
interactive application? The only way I can seem to get a flush
is by forcing the buffer to get really full.
Many thanks,