search cancel

ECLI - Multiple Command execution

book

Article ID: 254039

calendar_today

Updated On:

Products

CA Workload Automation AE

Issue/Introduction

We are trying to run multiple sendevents in the ECLI via WCC, but upon executing only the last statement executes and not the all, though we see the status shows commands executed successfully. 

 

Environment

Release : 12.1

Resolution

You can string together multiple commands in ecli (when the backend autosys is unix/linux).
You need to separate them using a semicolon and a space.
Example:

sendevent -E SET_GLOBAL -G g45=1; sendevent -E SET_GLOBAL -G g55=2

 

To stack commands on windows or rather DOS you use an ampersand with spaces on both sides.
Example
sendevent -e JOB_ON_HOLD -j c_script_1 & sendevent -e JOB_ON_HOLD -j c_script_2

For details see
https://stackoverflow.com/questions/8055371/how-do-i-run-two-commands-in-one-line-in-windows-cmd