in reply to Reading from a command pipe

Hi again.

I have found a solution to my problem. It is not relevant with perl, since the problem wasn't either as I found out, but to rup this thread up, I feel I must post the solution also.

The problem is that when you pipe a command (redirect STDOUT to another command) in unix (and as a consequence also with the open perl command), the default behaviour of outputing lines changes to outputing blocks, for less read callbacks to the system.

The solution if you want to keep the line to line dumping is to use the shell command "stdbuf (with -oL in my case) $cmd".

Hope this may be of use to someone else in the future. Bye