From: Bill Kelly Date: 2003-11-14T10:57:46+09:00 Subject: Re: can't flush print when download open-uri From: "T. Onoma" > > > Have you tried stdout.sync = true ? > > Yep. Dosen't work either. Thanks though. Boy is this frustrating. > There must be a simple way to do this. Hmm... Well I only have a bunch of questions then :) What platform are you running on? What ruby version? Is this a standalone script, or is it called from some other process (such as a CGI script called by Apache)? Do you eventually see any of your printouts at all? That is, if a linefeed is eventually printed, do all the "buffered" prints eventually show up? Also, in: > # THIS WON'T THIS PRINT!!!!!!!!!!! > print "\ca{source_file_io.pos}KB/#{@source_size}KB" Do you really want a control-A? And is the sharp sign really ommitted there before the open brace at \ca{ ? Regards, Bill