Do You Make These Mistakes while working with the environment file?
John Kurian 110000C2DH Visits (1678)
Over the past few years, I have had chance to watch both the experienced and the novice laying their hands on TXSeries for Multiplatforms. They make their first steps in setting up the region and configure it for their specific environments. Though TXSeries for Multiplatforms does not require a steep learning curve, there are few elementary mistakes users make, irrespective of their experience with the product. Many of the errors and mistakes can be totally avoided, before the scars of errors are carried forward to the production environment. Here I am trying to list few mistakes users seem to make, while working with region’s environment file. Most importantly, this will help you avoid those mistakes.
Using ‘export’ and ‘set’ in region’s environment file.
The region’s environment file, is the place where you set the environment variables, which the TXSeries region uses for its runtime functioning. Do not consider this as a shell script file (for unix systems) or batch file (for windows systems). The values are entered in the format envi
Tip: If you edit the environment file through TXSeries Administration Console, the tool will reject any entries which start with key words ‘export’ or ‘set’. Cool isn’t it?
Making the changes in region.env file
Under the region’s directory you will see a file REGION_NAME.env, where REGION_NAME is the name of the region. For example for a region called ABCDEFG, this will be /var
Using one system variable derive the value for another variable
Tip: If you edit the environment file through TXSeries Administration Console, the tool will reject any entries which contains special characters like $ and %. Another reason to use TXSeries Administration Console, right?
Wrong environment file selection
In some cases, editing the region’s environment file may not suffice for the system to work. This especially happens when the environment variable is expected to affect the entire system, and not just the region alone. You may have to choose between region’s environment file, /etc/environment file and /etc/profile file (for Unix systems).