I want to run an executable from a ruby ββrake script, let's say foo.exe
I want to outputs STDOUTand STDERRfrom foo.exerecorded directly in the console. I run the rake command.
When the process ends, I want to write the exit code to a variable. How to achieve this?
I've played with backticks, process.spawn, systembut I can not get all the behavior that I want only part
Update: I'm on Windows at the standard command prompt, not cygwin
source
share