Hi. Thank you for your quick responses.
I have tried $mw->update() with no success. After reading the links about buffering I tried making the $cmd_handle hot, with select and $|=1 (didn't work either) and with autoflush (it threw an error).
The first comment helped me though to get into thinking. While running the cmd directly in the shell did a line by line output, when trying to pipe it also from the shell, e.g. cmd | less, it presents the same problems as invoking from the perl script.
So the problem must lay in the cmd I call. It is a c compiled program, but I also have the source code, so I will try my luck there now.
It is new and strange to me that outputing in STDOUT dumps line by line, but piping to another program is dumped block by block.
Thanks again for your help.
In reply to Re: Reading from a command pipe
by DimosTsag
in thread Reading from a command pipe
by DimosTsag
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |