From: Adam Skobi Date: 2008-10-17T16:27:01+09:00 Subject: Re: Damn you cmd.exe! ------=_Part_5328_26563935.1224228454635 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline Sorry for not beeing clear enough. I want to have a consistent way of putting commands into the shell of both platforms - win32 and linux. The linux solution that I posted seems natural - open the /bin/bash and than operate by puts and gets. I was wondering if it's possible to do the exact same thing with the cmd.exe i.e. without opening the cmd.exe for each command (cmd.exe /C #{one_command_at_a_time}) The exec("cmd.exe") is not a solution as I want to have control of the input and output. -- Adam Skobi ------=_Part_5328_26563935.1224228454635--