Can't flush print when download open-uri

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.

P.S. SORRY ABOUT THE MULTIPLE POST. MAIL SERVER ACTING UP.

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 :slight_smile:

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

···

From: “T. Onoma” transami@runbox.com