Reliable way(s) of finding home directory of Sybase DB (ASE) on Linux and Windows
0
votes
1
answer
657
views
I need to write a script that finds Sybase installation on a system if there's any.
For testing I've installed ASE 16 on CentOS system, but the installer is apparently based on InstallAnywhere (Java).
This is one of the installation methods apparently, I'm not sure if there are more ways to install ASE like installing RPM package.
Anyway, there's this
SYBASE.sh
script for sourcing environment variables in the ASE installation that contains home directory. It's obviously catch-22 situation: in order to find this script I need to know the home directory of ASE to start with.
Yes, I can check in the usual locations like /sysdba
or /opt/sap
. The interactive installer obviously allows ASE to be installed anywhere of course, so that's not good enough.
What's the best way to find it? I'm willing to do stuff like tracking running processes to their executables etc., just anything that would help me find where ASE is installed. For reasons I won't go into even finding it just when it's running would be good.
I can run the script as root or Administrator, no problems with that.
Asked by LetMeSOThat4U
(513 rep)
Sep 12, 2022, 04:23 PM
Last activity: Sep 14, 2022, 04:58 PM
Last activity: Sep 14, 2022, 04:58 PM