search cancel

Passing Special Characters in the AWRUN Arguments

book

Article ID: 89421

calendar_today

Updated On:

Products

CA Automic Applications Manager (AM)

Issue/Introduction

Passing Special Characters in the AWRUN Arguments

Environment

Release: AAMOS499000-8.0-Automic Applications Manager-OS400 Agent
Component:

Resolution

Symptoms

Using special characters in an argument for any job ran from Applications Manager command line API, awrun or sorun, in UNIX causes the job to fail.

Cause

The special characters in the parameter are not being interpreted correctly due to the special character not being evaluated correctly. For example, if you include the '#' character in a parameter in UNIX, the pound sign is interpreted as a space or as a comment line if it is at the beginning of the string and not as the '#' character. 


Solution

To solve this problem, enclose the entire parameter value in 'single' quotes and the parameter will  be evaluated correctly.  For more information about awrun, please see the Development Guide, Section 15.2 awrun - The Command Line API for Requested Tasks.