From: Daniel N Date: 2006-09-20T10:04:11+09:00 Subject: Re: piping input when shelling out ------=_Part_345079_6609875.1158714248246 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline On 9/20/06, Caio Chassot wrote: > > > On 2006-09-19, at 21:51 , Daniel N wrote: > > >> > >> You could try using IO#popen The docs are at > > > > http://www.ruby-doc.org/core/classes/IO.html#M001247 > > > > Hope this is what your after. > > Looks like it. Thanks a lot. > > Do you know if it places the exit code in $? ? > > I wonder what happens if the subprocess is killed by the system? > > I guess I'll run some tests, but if you happen to know the answers, > I'd be glad to hear them nonetheless. I haven't had a lot of experience with it personally. I came across it in a plugin I was using that piped to an external progam and had a bit of a look. The plugin doesn't seem to do anything special with it and I havn't had a need to use it otherwise. Sorri I can't help further. ------=_Part_345079_6609875.1158714248246--