From: Shadowfirebird Date: 2008-07-31T23:27:13+09:00 Subject: Re: Input redirection in ruby Well, you can say $stderr.puts "message", for example. But I'm guessing that you are talking about something more comprehensive? On Thu, Jul 31, 2008 at 3:10 PM, Michal Suchanek wrote: > Hello > > I could not find any way to redirect input and output of programs in ruby. > > You can capture the fds but not redirect AFAICT. > > So unless there is something I have overlooked I add the the ruby wishlist: > > let popen and popen3 take IO arguments for use as stdin, stdout, and > stderr. Since they can be named in 1.9 (or was that dropped?) you may > specify anything you want. These should probably work only with IO > that is backed by a real fd, support for StringIO or similar might be > problematic. > > Thanks > > Michal > > -- Me, I imagine places that I have never seen / The colored lights in fountains, blue and green / And I imagine places that I will never go / Behind these clouds that hang here dark and low But it's there when I'm holding you / There when I'm sleeping too / There when there's nothing left of me / Hanging out behind the burned-out factories / Out of reach but leading me / Into the beautiful sea