Use the block form.
Open3.popen3('man ruby'){ |stdin, stdout, stderr|
...
}
Closes the blocks automatically for you.
Regards,
Dan
···
-----Original Message-----
From: matt.smillie@gmail.com [mailto:matt.smillie@gmail.com]
Sent: Tuesday, February 21, 2006 1:39 PM
To: ruby-talk ML
Subject: Re: system() helpLook up 'open3' in the standard library:
http://ruby-doc.org/stdlib/libdoc/open3/rdoc/index.htmlrequire "open3"
stdin, stdout, stderr = Open3.popen3('man ruby')(You don't have to use stdin if you don't want to)