Client Automation - Create an output file for a job under the Job Target Properties > Job Output
search cancel

Client Automation - Create an output file for a job under the Job Target Properties > Job Output

book

Article ID: 26470

calendar_today

Updated On:

Products

CA Client Automation - IT Client Manager CA Client Automation

Issue/Introduction

If you want to capture the output of an installation procedure then you can use the $rf macro to redirect any output to an Output File.

The Output file can then be viewed by clicking on the Output File tab of the Job Target Properties window.

Environment

CA Client Automation - All Versions

Resolution

When the installation procedure is being created, the following needs to be added in the 'Parameters' section under the Embedded File tab:
>$rf

This will cause the output file to be generated so that any output that the install procedure generates will appear in this file.

NOTE:
You can also achieve the same result by passing only '$rf' as a parameter to the installation file provided that the file itself can redirect output to the variable passed in.
So for a batch file, the required lines in the batch file would be redirected to this passed-in parameter (%1)

Example: echo "this is text in the batch file" > %1
The 'Parameters' section for this job should simply contain $rf.