in reply to Re: How to cpture output of interactive command using perl.?
in thread How to cpture output of interactive command using perl.?

Could you not fix the buffering problem by turning on autoflush?
... $| = 1; #Autoflush on system("your_command | tee $filename"); $| = 0; #Autoflush off
for(split(" ","tsuJ rehtonA lreP rekcaH")){print reverse . " "}print "\b.\n";