Environment variables in PresSTORE scripts
Posted by Sven Koester, Last modified by Sven Koester on 17 April 2012 13:57
|
|
When starting scripts from within PresSTORE, e.g. to create previews or per-job-scripts, the use of environment variables may differ from the standard expectations: On Linux and Solaris, the environment variables from the caller of the start-server script are copied, but the following variables are modified:
On Mac OS X, PresSTORE is called by the launch deamon (also when start-server is called manually), but the following environment variables are changed:
Starting with PresSTORE 4.3.7, the variable DYLD_LIBRARY_PATH will include the previous value of the environment of the start-server call. This means the DYLD_LIBRARY_PATH can be preset with the /etc/bashrc file. Note that each start-server call will overwrite the plist file that controls the environment when running under launch deamon control. On Windows, PresSTORE is called as a service and takes over the environment of the service controller. The start mechanism does not change environment variables. The easiest way to make environment variable reflect specific values in a script called from within PresSTORE is to set them at the beginning of the script itself.
| |
|
Yet one of my scripts is using AWPST_SRV_JOB so there must be done.
Can you please supply a list of available environment variables?