October 24th, 2001, 09:43 AM
xterm buffers program output?
Whenever I run a program through an xterm it seems to buffer all of the output (to stdout) until the program is finished. I thought this was just a PHP thing but I wrote similar scripts in C and Perl and they do the same.
They all do the same thing... I get
after 20 seconds.
Maybe I'm just stupid but I could swear I never had this problem when writing QBasic and C programs for DOS years ago...
I have also tried things like this:
./program.php | more
./program.php > output
But the output is still buffered until the end...