2 # tee(1) as distributed on most(all?) systems is buffered in luserspace
3 # this only does unbuffered writes (with line-buffered input) to make
4 # test output appear in real-time
5 # -*- encoding: binary -*-
8 fp
= File
.open(ARGV.shift
, "wb")
9 $stdin.each_line
do |line
|