Hello fellows, After spending a few days on this, it seems that redirecting output between ruby and unix programs is not difficult *except* in the case of more. Since more grabs control of the terminal, I have not been able to figure out a way of piping output to it and having it behave correctly yet - even using shell.rb does not seem to work with more. Has anyone ever accomplished using more with a ruby shell? Tuan Tuan Bui wrote: > Good morning, > > > I use Ruby as a scripting layer over another program, and I want to be > able to pipe the output of that program to unix programs. Is this > possible? I'm trying to do something like this: > > > #this will return output from the program in a string > programoutput = @program.send(input) > > #destprogram might be cat, grep, more, less, any such program > programoutput pipeoutput serr = Open3.popen3(destprogram) > > Does anyone know of a way to do this? > > Thanks, and have a grand old day. > Tuan >