BES client install folder - non-Windows

(imported topic written by mgelmer23)

What is the easiest non-Windows equivalent of the command below, to find the path name of the BES Client installation directory? Preferrably something that will work on HP-UX, AIX, SunOS, MAC, etc. Bonus points if it also works on Windows.

pathname of parent folder of regapp “besclient.exe”

(imported comment written by BenKus)

This will work on all OSes:

pathname of parent folder of client

Note that if you run this in the Relevance Debugger, it will consider the Relevance Debugger to be the “client”.

Ben

(imported comment written by mgelmer23)

Thanks!