ALERT: Some images may not load properly within the Knowledge Base Article. If you see a broken image, please right-click and select 'Open image in a new tab'. We apologize for this inconvenience.

How to use UNIX Command Substitution in a Global Variable


Article ID: 14596


Updated On:


CA Workload Automation AE - Business Agents (AutoSys) CA Workload Automation AE - Scheduler (AutoSys) Workload Automation Agent


How can you set a Global Variable with UNIX command substitution so that the actual command substitution is stored as the value rather than the result of the command substitution?


Release: ATSYHA99000-11.3.6-Workload Automation AE-High Availability Option


If you are setting the global variable in WCC via Quick Edit, there is nothing special that would need to be done. Just set the value to `<command>`. However, if you are setting the global variable using the sendevent command, you will need to escape the backticks. For example...

sendevent -E SET_GLOBAL -G "<VAR_NAME>=\`<command>\`"