Knowledgebase: Tips and tricks
Environment variables in PresSTORE scripts
Posted by Sven Koester on 04 April 2012 18:09

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:

  • LANG="en_US.UTF-8"
  • LC_TIME="C"
  • LEXXDIR is set to the PresSTORE home folder
  • LD_LIBRARY_PATH is extended

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:

  • LANG="en_US.UTF-8"
  • LC_TIME="C"
  • DYLD_LIBRARY_PATH="/usr/local/aw/bin"

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.

 

 


(0 vote(s))
Helpful
Not helpful

Comments (2)
Ronald Knol
11 February 2016 19:10
I cannot find a list of environment variables (that pre-/post-scripts can use) anywhere.
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?
Andre Kuehnemund
09 May 2016 18:10
A list of environmental variables used by P5 can be found in the P5 CLI manual. For a current copy of the P5 CLI manual, please search for "manual" or "guide".
Post a new comment
 
 
Full Name:
Email:
Comments:
CAPTCHA Verification 
 
Please enter the text you see in the image into the textbox below (we use this to prevent automated submissions).

ERROR: This domain name (portal.archiware.com), does not match the domain name in the license key file support.archiware.com.

For assistance with your license, please contact the Kayako support team: https://support.kayako.com