Another option: print your message to stderr, not stdout. Stderr is 
usually not buffered by the OS (for exactly this sort of reason).

Dave
-- 
Posted via http://www.ruby-forum.com/.