64 bit


Determine whether Progress is 32- or 64-bit

This is a bash script that determines whether the Progress version installed on a *nix system is 32-bit or 64-bit. It also determines whether the O/S is 32- or 64-bit, though this has not been widely tested. It can be conveniently called from other scripts by running with the -s switch and checking the return value (32 or 64, or 0 on error).

The script needs to be able to find the Progress installation in order to run. It will check $DLC, $PATH, and /usr/dlc.

Typical usage:

> 32or64.sh
Progress is 64 bits; OS is 64 bits

> ./32or64.sh -s
> echo $?
64


Syndicate content