Reputation: 1970
` I tried echo ${SERVERROOT} in sh. I execute this script in desktop. It displays empty. How to get installation path dynamically?
Upvotes: 0
Views: 286
Reputation: 17886
Since there could be multiple installations of multiple releases, to reliably find them you'd need to parse (for 8.0 and later) /var/ibm/InstallationManager/installed.xml
Or, sort this out once and set an environment variable or symlink on the system.
Upvotes: 1