From: Farrel Lifson Date: 2006-03-23T05:36:00+09:00 Subject: Re: Return code of process from IO Just solved it. Just run Process.wait after the call to the IO.popen and $? gets updated. On 3/22/06, Farrel Lifson wrote: > Hi folks, > > I'm using IO.popen to communicate with an external process. At some > point the external process will exit either with a true or false > condition. It uses shell return codes (0 for true, 1 for false) to > indicate that this is happened. Is there a way to get the vale of this > return code from an IO object? Or will it be better to use Kernel.` or > suchlike. The $? system var doesn't seem to be updated using IO. > > Farrel >