CA uses Scriptname in CA ESP WA to call shell scripts and the CMDNAME statement to run binary files as per the Reference Guide. At times, we are required to change Scriptname to CMDNAME to get the script to work. When must I use the Scriptname over the CMDNAME method of calling the script?
This is an example of the use of scriptname and cmdname:
To correct, you had to change the SCRIPTNAME to the following:
CMDNAME /bin/sh ARGS -c 'env + /usr/apps/scripts/cleanup.ksh'
You can use the CMDNAME method for all scripts. There is no requirement to use the Scriptname over the CMDNAME method. The Scriptname method exists because it's simpler to code than the CMDNAME method. Note that the Scriptname method is only valid for Unix scripts. You must use the CMDNAME method for windows.