CallAPI Linux doesn't work with <<EOF ... EOF construct on RHEL9
search cancel

CallAPI Linux doesn't work with <<EOF ... EOF construct on RHEL9

book

Article ID: 401746

calendar_today

Updated On:

Products

CA Automic Workload Automation - Automation Engine

Issue/Introduction

The following doesn't work on RHEL9, while on RHEL8 and RHEL7, this works fine:

[<user>@<server> bin]$ ./ucxblx6c INI=./ucxbxxxc.ini <<EOF
> :set &HND#=ACTIVATE_UC_OBJECT(SCRI.CALLAPI)
> EOF
usage: ucxbxxxc script=<file> [logon=<client>,<user>,[<dept>],[<pass>]] [ini=<file>] [queue=<name>]
 script= ... includes the UC4 Operations Manager script
 logon=  ... UC4 Operations Manager logon information
 ini=  ... Use this INI file
 queue= ... UC4 queue name, use this 'queue' for start script
[<user>@<server> bin]$

The same happens when the above is added to a script:

#!/bin/ksh

./ucxblx6c INI=./ucxbxxxc.ini <<EOF
:set &HND#=ACTIVATE_UC_OBJECT(SCRI.CALLAPI)
EOF

Execution of the script:

[<user>@<server> bin]$ ./script.ksh
./script.ksh
usage: ucxbxxxc script=<file> [logon=<client>,<user>,[<dept>],[<pass>]] [ini=<file>] [queue=<name>]
 script= ... includes the UC4 Operations Manager script
 logon=  ... UC4 Operations Manager logon information
 ini=   ... Use this INI file
 queue=  ... UC4 queue name, use this 'queue' for start script
[<user>@<server> bin]$

The more common way of execution with INI= and SCRIPT= works well:

[<user>@<server> bin]$ ./ucxblx6c INI=./ucxbxxxc.ini SCRIPT=./script.txt
20240605/125639.945 - U03000000 Program 'UC4 Call Interface', version '21.0.10+build.1712695904806', change list '1712695904' started.
20240605/125639.946 - U03000017 Build Date: '2024-04-09', '20:51:44'
20240605/125640.099 - U03000004 RunID '3445012'
20240605/125640.100 - U03000001 Program 'UC4 Call Interface' version '21.0.10+build.1712695904806' ended normally.
[<user>@<server> bin]$

Environment

RHEL9

Resolution

Workaround:

Use ./ucxblx6c INI=<ini_file> SCRIPT=<script_file>

Solution:

Update to a fix version listed below or a newer version if available.


Fix version:

Component(s): Unix CallAPI

Automation.Engine 24.4.1 - June 2025
Automation.Engine 21.0.15 - September 2025

 

 

Additional Information

The reference for this fix is DE126742