It is not possible to run alias commands within the uproc script.

book

Article ID: 85223

calendar_today

Updated On:

Products

CA Automic Dollar Universe

Issue/Introduction

Affects Release version(s): 5

Error Message :
Error message in the job log:
Patch level detected:Dollar Universe 5.6
Product Version: Dollar.Universe 5.6.0 FX25010

Description :It is not possible to run alias commands within the uproc script. The alias command cannot be found.

Cause

Cause type:
By design
Root Cause: It is normal behavior that an alias command does not work on any shell script. It is a system limitation and not Dollar Universe issue.

Environment

OS: All Unix

Resolution

Add following commands within the script so that an alias commands would work within the script:

source ~/.bash_profile --> This could vary depending on the name of the profile that you are using.

shopt -s expand_aliases



For example:
===================================
#! /bin/bash

source ~/.bash_profile

shopt -s expand_aliases

lddu
envrep


exit $?
===================================

Fix Status: No Fix

Additional Information

Workaround :
N/A