Line: 1 to 1 | ||||||||
---|---|---|---|---|---|---|---|---|
Setting Environment Variables | ||||||||
Line: 12 to 12 | ||||||||
Global OS Environment Variables | ||||||||
Changed: | ||||||||
< < | The "classic" and most general place to set environment variables is at the OS level. In Windows, they are set in the autoexec.bat or System Environment on APPX/Client machine. In UNIX, they are typically set in /etc/profile
Among the BENEFITS are that they are:
| |||||||
> > | The "classic" and most general place to set environment variables is at the OS level. In Windows, they are set in autoexec.bat or the System Environment (Computer Properties, Advanced System Settings, Advanced Tab, Environment Variables button. Might require a reboot to take effect). In UNIX, they are typically set in /etc/profile
BENEFITS:
| |||||||
DISADVANTAGES: | ||||||||
Changed: | ||||||||
< < |
| |||||||
> > |
| |||||||
Per-user OS Environment Variables | ||||||||
Deleted: | ||||||||
< < |
| |||||||
Changed: | ||||||||
< < | Also overrides any global appx.env settings. | |||||||
> > | For character mode users on a Linux/Unix system you can set environment variables in their ~/.profile. This will override any OS settings or any appx.env settings. | |||||||
Changed: | ||||||||
< < | Startup script or batch files | |||||||
> > | This does not work for users that connect via the Login Manager.
Startup script files | |||||||
Changed: | ||||||||
< < | The next technique for setting APPX-related environment variables, is to do so directly in the script or batch file invoked by system users to start APPX, or invoked by the system to start AppxD. | |||||||
> > | If you use a script to start APPX for your character mode users, you can set them in the script. | |||||||
BENEFIT: | ||||||||
Changed: | ||||||||
< < |
| |||||||
> > |
| |||||||
DISADVANTAGES: | ||||||||
Changed: | ||||||||
< < |
BENEFIT (start-appxd.sh):
DISADVANTAGE (start-appxd.sh):
AppxD startup script (UNIX only)
Global appx.env Environment VariablesThe recommended method for setting environment variables is in Global appx.env.
Per-user appx.env Environment VariablesPer-user appx.env is not available for APPX/Client users. | |||||||
> > |
Login Manager | |||||||
Changed: | ||||||||
< < | It is only useful in "shared disk" configurations on Windows, and for UNIX Telnet access to APPX.
Overrides any OS settings. Also overrides any global appx.env settings.
| |||||||
> > | This technique involves changing the settings of the Login Manager. See Login Manager For Unix/Linux or Login Manager For Windows.
BENEFIT:
DISADVANTAGE:
Global appx.env Environment Variables | |||||||
Added: | ||||||||
> > | The recommended method for setting environment variables is in the appx.env file ($APPXPATH/appx.env).
BENEFIT:
DISADVANTAGE:
| |||||||
Setting Environment Variables on the Command line | ||||||||
Changed: | ||||||||
< < | You can also set environment variables from the command line. Just prefix the variable with 2 dashes as follows: | |||||||
> > | You can also set environment variables from the command line. Just prefix the variable with 2 dashes as follows on the command line: | |||||||
appx --APPX_SQL_LOG=c:\logs\appx.log --APPX_CMD_LOG=0xFFFFFFFF This will set APPX_SQL_LOG and APPX_CMD_LOG for the duration of this session only. | ||||||||
Changed: | ||||||||
< < | Gotchas | |||||||
> > | Common Problems | |||||||
Tech support sees various issues related to environment variables come up on a regular basis. Since forewarned is forearmed, here they are.
APPX_PRT_FI_DIR must have trailing slashDetermines where APPX creates report files. Examples in UNIX and Windows: | ||||||||
Changed: | ||||||||
< < | $ export APPX_PRT_FI_DIR=/tmp/pat/C:\> set APPX_PRT_FI_DIR=\\server\printfiles\pat\ | |||||||
> > | $ export APPX_PRT_FI_DIR=/tmp/pat/C:\> set APPX_PRT_FI_DIR=\\server\printfiles\pat\ | |||||||
Make sure path names are valid | ||||||||
Changed: | ||||||||
< < | For any variable requiring a file or directory pathname, make sure that all directories in the path exist. On UNIX (or when editing appx_print for UniQue), make sure that the case you use in the variable setting matches the actual case of the filename. A mistake here can cause log files to not appear, or APPX to behave incorrectly. | |||||||
> > | For any variable requiring a file or directory pathname, make sure that all directories in the path exist. Make sure that the case you use in the variable setting matches the actual case of the filename for those environments that are case sensitive. A mistake here can cause log files to not appear, or APPX to behave incorrectly. | |||||||
Setting a variable in .profile for a APPX/Client user will have no effectWhile a variable set in a UNIX .profile will affect a user's APPX session if they Telnet in to the APPX machine, it won't affect a APPX/Client login. Since we directly start up APPX from APPX/Client, rather than going through a Command Shell as with Telnet, no shell initialization files are processed. | ||||||||
Deleted: | ||||||||
< < | Clicking "Apply" after a change, won't update a running copy of WinAppxDWinAppxD runs as a system service. As such, the only way to get WinAppxD (and subsequent APPX/Client sessions started from it) to recognize changes in the system environment is to reboot the server. | |||||||
Comments:Read what other users have said about this page or add your own comments. | ||||||||
Changed: | ||||||||
< < | ||||||||
> > |
Line: 1 to 1 | ||||||||
---|---|---|---|---|---|---|---|---|
Setting Environment Variables | ||||||||
Changed: | ||||||||
< < | APPX offers five levels at which environment variables may be set: | |||||||
> > | APPX offers six levels at which environment variables may be set: | |||||||
Line: 10 to 10 | ||||||||
Specific Environment Variables are documented in detail at Environment Variables List. | ||||||||
Deleted: | ||||||||
< < |
| |||||||
Global OS Environment VariablesThe "classic" and most general place to set environment variables is at the OS level. In Windows, they are set in the autoexec.bat or System Environment on APPX/Client machine. In UNIX, they are typically set in /etc/profile | ||||||||
Line: 22 to 17 | ||||||||
DISADVANTAGES:
| ||||||||
Deleted: | ||||||||
< < |
| |||||||
Per-user OS Environment Variables
| ||||||||
Line: 37 to 28 | ||||||||
Also overrides any global appx.env settings. | ||||||||
Deleted: | ||||||||
< < |
| |||||||
Startup script or batch filesThe next technique for setting APPX-related environment variables, is to do so directly in the script or batch file invoked by system users to start APPX, or invoked by the system to start AppxD. | ||||||||
Line: 55 to 41 | ||||||||
AppxD startup script (UNIX only)
| ||||||||
Deleted: | ||||||||
< < | ||||||||
Global appx.env Environment VariablesThe recommended method for setting environment variables is in Global appx.env.
| ||||||||
Deleted: | ||||||||
< < | ||||||||
Per-user appx.env Environment VariablesPer-user appx.env is not available for APPX/Client users. | ||||||||
Line: 71 to 55 | ||||||||
Overrides any OS settings. Also overrides any global appx.env settings.
| ||||||||
Changed: | ||||||||
< < | ||||||||
> > | Setting Environment Variables on the Command lineYou can also set environment variables from the command line. Just prefix the variable with 2 dashes as follows: appx --APPX_SQL_LOG=c:\logs\appx.log --APPX_CMD_LOG=0xFFFFFFFF This will set APPX_SQL_LOG and APPX_CMD_LOG for the duration of this session only. | |||||||
GotchasTech support sees various issues related to environment variables come up on a regular basis. Since forewarned is forearmed, here they are. |
Line: 1 to 1 | ||||||||
---|---|---|---|---|---|---|---|---|
Setting Environment Variables | ||||||||
Line: 8 to 8 | ||||||||
General Environment Variable information can be found at APPX Environment Variables. | ||||||||
Changed: | ||||||||
< < | Specific Environment Variables are documented in detail at Environment Variables List. | |||||||
> > | Specific Environment Variables are documented in detail at Environment Variables List. | |||||||
|
Line: 1 to 1 | ||||||||
---|---|---|---|---|---|---|---|---|
Added: | ||||||||
> > |
Setting Environment VariablesAPPX offers five levels at which environment variables may be set:Global OS Environment VariablesThe "classic" and most general place to set environment variables is at the OS level. In Windows, they are set in the autoexec.bat or System Environment on APPX/Client machine. In UNIX, they are typically set in /etc/profileAmong the BENEFITS are that they are:
DISADVANTAGES:
Per-user OS Environment Variables
Startup script or batch filesThe next technique for setting APPX-related environment variables, is to do so directly in the script or batch file invoked by system users to start APPX, or invoked by the system to start AppxD.BENEFIT:
DISADVANTAGES:
BENEFIT (start-appxd.sh):
DISADVANTAGE (start-appxd.sh):
AppxD startup script (UNIX only)
|