M
Michal Suchanek
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
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