[lnkForumImage]
TotalShareware - Download Free Software

Confronta i prezzi di migliaia di prodotti.
Asp Forum
 Home | Login | Register | Search 


 

Forums >

comp.lang.ruby

Re: can't flush print when download open-uri

T. Onoma

11/14/2003 1:41:00 AM

> 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.

1 Answer

Bill Kelly

11/14/2003 1:58:00 AM

0

From: "T. Onoma" <transami@runbox.com>
>
> > 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