Have you considered setting sync to true in your ruby code:

STDOUT.sync = true
This will tell stdout to flush after every write/puts etc.

I was not aware of that option, but it sounds like just what I need.  I will give it a try.  Thank you very much!

Scott