I have a Ruby script that I have developed that allows me to install and build multiple C++ packages. I am able to execute the Ruby script and install the packages with no errors.
However, I would like to be able to capture all of the output, including cerr, to a "log" file of my choosing. I am able to redirect Ruby's cerr and standard output, but I cannot capture the bash commands: qmake
, make
, or make install
cerr. The output still flows to the terminal.
I want to be able to run the Ruby script and not see any debug messages from any qmake
, make
, or make install
bash commands, but be able to check a log file later for build results.