uejmver.sh does not work using sudo
cd /opt/CA/WorkloadAutomationAE/wcc
sudo ./uejmver.sh
./uejmver.sh: line 2: /jre/bin/java: No such file or directory
Release : 12
Component : CA Workload Automation AE (AutoSys)
uejmver.sh has some environment variables which are sourced from /etc/profile.CA file. So sourcing /etc/profile.CA file is needed before running the script. sudo ./uejmver.sh does not source the above file and so the error.
One option is to run the command like this instead:
sudo -- sh -c ". /etc/profile.CA; ./uejmver.sh"
It should now show the output like below
Product Name: AutoSys Web UI
Copyright: Copyright (c) 2020 Broadcom All rights reserved.
Release: 12.0
Service Pack: 01
Maintenance Level: 00
Build Number: 1142
Volume Label: ae-webui-12.0.01-11-29
Platform: Linux