I have a rather large ruby program, too large to post. When I run it the
standard output is produced as I expect. When I run the program with the
output | tee or redirected to a file, output goes so far and no more data
is added to the screen or the file.  I have tested tee with yes and it
seems to work OK, and I have sent the output of yes into a file, and that
seems to work OK. Both cases produce files bigger than my large program.

I had to re-implement yes because the suns don't actually have it[!], so I
did it in ruby as well, and the ruby version does not get stuck.

My system is Sun Sparc Solaris 7 ruby-1.4.4.

yes and yes.rb are below, FYI.  Any idea what I should be looking for
to debug this?
	Hugh
	hgs / dmu.ac.uk
--------------------------------------
#!/bin/sh
message=$*
while true
do 
   echo ${message:=yes}
done
---------------------------------------
#!/usr/local/bin/ruby -w
if ARGV.length == 0
    message = ["yes"]
else
    message = ARGV 
end
while true
   print "#{message.join(' ')}\n"
   # sleep 1
end
---------------------------------------