02.05.2013 Views

User Guide - MKS

User Guide - MKS

User Guide - MKS

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Chapter 4: Source Integrity Interfaces<br />

Environment<br />

Variables<br />

86<br />

Environment variables are accessed by external programs configured<br />

under the user toolbar buttons. When using these variables, the names<br />

must be in uppercase or Source Integrity will not recognize them. You can<br />

use the environment variables listed in this section.<br />

Window Type Opened Associated Environment Variable<br />

All The environment variable <strong>MKS</strong>SI_WINDOW is set in all cases.<br />

If there is no active window, or no window, then:<br />

<strong>MKS</strong>SI_WINDOW=none<br />

If there is an active window, then:<br />

<strong>MKS</strong>SI_WINDOW=[project|sandbox|projecthistory]<br />

Otherwise, the value is set to a window-specific value:<br />

<strong>MKS</strong>SI_WINDOW=archive<br />

If the active window is a different window, then:<br />

<strong>MKS</strong>SI_WINDOW=unknown<br />

For example, a Project Modifications window that does not produce any specific<br />

environment variables:<br />

<strong>MKS</strong>SI_WINDOW=unknown<br />

Note: For the values none and unknown, no other variables are set.<br />

All known window types set three variables for the server:<br />

<strong>MKS</strong>SI_HOST<br />

<strong>MKS</strong>SI_PORT<br />

<strong>MKS</strong>SI_USER<br />

Because Source Integrity supports multiple connections to the server, you should<br />

specify the following environment variables when running a command line<br />

operation from the toolbar:<br />

si --host=$<strong>MKS</strong>SI_HOST --port=$<strong>MKS</strong>SI_PORT<br />

--user=$<strong>MKS</strong>SI_USER<br />

u s e r g u i d e

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!