When I run "/etc/myApp" I am presented with continuous output, just about once per second.
However when I try to get the information in
Perl via a piped open, it waits till the end to give me anything... my code:
Code:
open (OUTPUT,"/etc/myApp |");
while (<OUTPUT>){
print $_;
}
close (OUTPUT);
Why is that, and how can I fix it so that I do get the progressive output?
I know that I can solve my particular problem by just pushing STDOUT to a temp file, and then parsing it... but I would prefer to learn how to handle "live" data