Sendevent command not found when running a job
search cancel

Sendevent command not found when running a job

book

Article ID: 141552

calendar_today

Updated On:

Products

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

Issue/Introduction

When running a job that performs a 'sendevent' command, following error is found back :

/opt/CA/WAAE_11.3.6/SystemAgent/WA_AGENT/spool/ACE_SCH/MAIN/WAAE_WF0.1/113.25_1.8CA26E853423B55E91CDB16D0380E7E8DB8C8829.sh: line 2: sendevent: command not found

 

We are trying to set 'sendevent' before we run our daily jobs. Below is the 'sendevent' command we are trying to run.

#!/bin/sh
sendevent -E SET_GLOBAL -G "GDPDATE=`date "+%y%m%d"`"

 

Environment

Workload Automation AE (AutoSys)

Resolution

Check out if you have following lines in your agentparm.txt file, if not, please add

#
# Added by WAAE Add Instance
#
oscomponent.environment.variable_manager_ACE_SCH=/opt/CA/WAAE_11.3.6/SystemAgent/WA_AGENT/profiles/ACE.txt

 

The file "/opt/CA/WAAE_11.3.6/SystemAgent/WA_AGENT/profiles//ACE.txt should contain following line:

EWAGLOBALPROFILE=/etc/auto.profile