From: Sebastian Hungerecker Date: 2007-12-23T17:41:27+09:00 Subject: Re: Fairly elementary UNIX question Steckly, Ron wrote: > I'd like to be able to make a simple GUi for [R] so that its easier for > people to enter commands who are still learning R.  But I'm not sure how > to script to a terminal.... "script to a terminal" is maybe the wrong term, because there is no terminal involved at all (at least no xterm). You want pipes: require 'open3' input, output, errors = Open3.popen3("R") input.puts "my_command" response = output.gets ... HTH, Sebastian -- Jabber: sepp2k@jabber.org ICQ: 205544826