How to capture output of Build Forge 7.1.x engine running in the foreground on Windows
How do you capture all output messages of IBM Rational Build Forge 7.1.x engine running in the foreground on Microsoft Windows platform for troubleshooting purposes?
You can redirect all output messages of Build Forge 7.1.x engine running in the foreground to a file by creating a script file which can work like 'tee' command. Here are steps:
All source code and/or binaries attached to this document are referred to here as "the Program". IBM is not providing program services of any kind for the Program. IBM is providing the Program on an "AS IS" basis without warranty of any kind. IBM WILL NOT BE LIABLE FOR ANY ACTUAL, DIRECT, SPECIAL, INCIDENTAL, OR INDIRECT DAMAGES OR FOR ANY ECONOMIC CONSEQUENTIAL DAMAGES (INCLUDING LOST PROFITS OR SAVINGS), EVEN IF IBM, OR ITS RESELLER, HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES.
- Create a script file
Create a script file which reads input from STDIN and writes it to STDOUT and STDERR both. Here is a sample script file (*.vbs) which can be run by CScript.exe. In this example, it is saved as C:\temp\redirect.vbs.
Set stdin = WScript.StdIn
Set stdout = WScript.StdOut
Set stderr = WScript.StdErr
Do While Not stdin.AtEndOfStream
str = stdin.ReadLine
- Start Build Forge engine with the script
Start Build Forge engine with the script. The following syntax can be used for the sample script above:
cd <Build Forge engine install directory>
bfengine.exe -d 2>&1 | cscript C:\temp\redirect.vbs 2>C:\temp\bfengine_log.txt
Now you can redirect all output messages to a file (C:\temp\bfengine_log.txt in this example) as well as see them in the foreground Window.
Important Note: CScript.exe is a command-line version of the Windows Script Host, which is provided by Microsoft. For more details, refer to http://technet.microsoft.com/en-us/library/bb490887.aspx.
More support for:
Rational Build Forge
Software version: 7.1, 7.1.1, 126.96.36.199, 188.8.131.52, 184.108.40.206, 220.127.116.11
Operating system(s): Windows
Software edition: Enterprise, Express, Standard
Reference #: 1441280
Modified date: 29 October 2010
Translate this page: