From: Robert Klemme Date: 2009-12-12T04:35:19+09:00 Subject: Re: Redirecting standard output On 12/11/2009 05:30 PM, Robert Gleeson wrote: > Can anyone else provide an example? > >> This does only work for redirections of output for the particular >> process. It will fail in these cases >> - sub processes started # thats cleared up. >> - all entities which remembered $stdout instance (e.g. a logger) # huh? > > I don't see how reassignment or #reopen would make a difference. They > reference the same object after all - for this particular case, their > behavior is the same. > > So what gives? I suggest you look again at my earlier posting (the one with the "date" example) and / or look at the documentation. There *is* a difference between reassigning and using #reopen - and it is significant. Cheers robert -- remember.guy do |as, often| as.you_can - without end http://blog.rubybestpractices.com/