From: Chris Morris Date: 2003-07-15T22:05:21+09:00 Subject: Re: system, `` or exec on Windows? Ronald Pijnacker wrote: >What is the easiest (or any) way to do the following with Ruby on >Windows: > >- execute a child process >- get the output written to stdout and stderr (as with ``) >- also get the exit code ($?) >- in a thread safe way > > Can't answer all your questions, but I'll share what I got. First, see http://ruby-talk.com/10006 for some replacement methods for `` and system, if you're unable to get the originals to work on Windows. Downside as this post mentions (http://ruby-talk.com/blade/41583) is that $? is then not set. It also doesn't help you with stderr, although there was a recent thread with making a popen3 for Windows, dunno what the latest on that is. And thread-safe - dunno either. -- Chris http://clabs.org/blogki -=-=-=-=-=-=-=-=-=-=-=-=-=- Free solo piano album (mp3) http://cministries.org/cstudios/blackandwhite.htm