From: Richard Lawrence Date: 2007-07-12T08:15:04+09:00 Subject: Re: Help with system() call and pipe Doan, Alex wrote: > I'm using system call and pipping the output to a log. Something funny > happen when I have more then two escaped quotes and '>>' in my call. Can > someone shed some light on the issue: > > Case: > command_to_execute = "\"c:/program files/cvs.exe\" -q export -r HEAD -d > TEST \"1sks/src folder\" >> output.log" > system( command_to_execute ) > > This call will error out stating that c:/program is not recognized. Isn't this because you need to escape the space, too? so that command_to_execute = "\"c:/program\ files/cvs.exe\" ..." > Now if I remove the >>, the command work fine. To me, that's the weird thing here...