On Wed, Nov 07, 2001 at 08:01:11PM +0900, HarryO wrote:
> Say I wanted to run a shell, send it commands and catch the output from
> them.
> 
> How can I do that in Ruby?  I've tried a number of access modes to popen
> and also tried running a separate thread, setting up a couple of pipes
> and setting $defin and $defout, but can't seem to get it right.
> 
> Any suggestions?

I gather that you need something more than backticks, but I thought
I'd mention them just in case.

retstr = `echo hi`

-- 
Alan Chen
Digikata LLC
alan / digikata.com
http://digikata.com