Currently the environment seen by jobs on grid resources contains very little ``grid'' customization. The standard path and ld_library_path variables will be set allowing access to typical grid client commands. In addition, the variables edg_location and globus_location will be set to the top of the EDG and Globus software trees.5.1
Notably there will be no environment specific to your virtual organization setup automatically. To bootstrap the environment setup, your job should first execute the command:
eval `\$EDG_LOCATION/bin/edg-vo-env --shell=sh atlas`where ``atlas'' is replaced by the name of your virtual organization and ``sh'' is either ``sh'' or ``csh'' for sh-like or csh-like shells, respectively. The command uses ``sh'' if the shell is not specified explicitly. After execution the variable atlas_root_dir will be defined. Your virtual organization may also require additional setup in which case you will be required to source a script under the atlas_root_dir area.
Information about the matchmaking process is provided in the .BrokerInfo file which is accessible from the environment variable edg_wl_rb_brokerinfo. A precise example on using this file can be found in Chapter 6.