Using Environment Variables to Configure a License Server
The method used to set an environment variable varies depending upon the operating system. The following is a summary of the methods used for each operating system.
Environment variables are set in Windows 95/98/ME by using the SET statement inside the autoexec.bat file.
In Windows NT/2000/2003/XP, environment variables are set using the Control Panel > System> Environment dialog box. Administrator privileges are needed to change these settings. Each environment variable should be added as a System Variable. On Windows NT/2000/2003/XP, environment variables are read by the System Services when the computer boots. For Sentinel RMS Development Kit 8.0.0, the service now reads the environment variable without rebooting the system.
On UNIX computers using the Bourne or Korn shell, environment variables are set by using the SET command at the command prompt, in a format similar to that for Windows 95/98/ME. However, remember to enclose the environment variable parameters in quotation marks, and follow the SET command with an export command.
For example, to set the default license code file name to net2lic, type:
SET LSERVRC=”net2lic”
;export LSERVRC
On UNIX computers using a C or TCSH shell, environment variables are set by using the SETENV command at the command prompt in this format:
SETENV <variable> parameters
For example, to set the default license code file name to net2lic, type:
SETENV LSERVRC net2lic