From: Alexey Verkhovsky Date: 2007-03-17T06:09:37+09:00 Subject: Re: Executing shell commands from Ruby... again. ------=_Part_101214_19212956.1174079373954 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline On 3/16/07, Kevin Skrenes wrote: > > I can't figure out a way to call a shell process > and retain a reference to it so that I can execute successive commands. > I need to do this on a Windows machine, While trivial on *nix, this task is not as easy as it should be on Windows. I am specifically talking about having a reference to the child process and doing anything with it. It involves "really close to the metal" Win32 API calls. For an example, have a look at the implementation of InstikiController.startin the following file: http://dev.instiki.org/browser/instiki/trunk/test/watir/e2e.rb I probably don't understand the second half of your question, because I read it as "how do I dynamically construct strings from variables". This is covered in the first 100 pages of every language tutorial, so nobody should ever have to ask this question on the list. Alex ------=_Part_101214_19212956.1174079373954--