[Swift-commit] r5268 - trunk/docs/userguide

davidk at ci.uchicago.edu davidk at ci.uchicago.edu
Tue Nov 1 00:09:56 CDT 2011


Author: davidk
Date: 2011-11-01 00:09:55 -0500 (Tue, 01 Nov 2011)
New Revision: 5268

Modified:
   trunk/docs/userguide/transformation_catalog
Log:
Examples of setting environment variables


Modified: trunk/docs/userguide/transformation_catalog
===================================================================
--- trunk/docs/userguide/transformation_catalog	2011-11-01 05:05:10 UTC (rev 5267)
+++ trunk/docs/userguide/transformation_catalog	2011-11-01 05:09:55 UTC (rev 5268)
@@ -8,7 +8,7 @@
 Swift configuration file or on the command line.
 
 The format is one line per executable per site, with fields separated by
-tabs. Spaces cannot be used to separate fields.
+tabs.
 
 Some example entries:
 ----
@@ -17,7 +17,7 @@
 ----
 
 The fields are: site, transformation name, executable path, installation
-status, platform, and profile entrys.
+status, platform, and profile entries.
 
 The site field should correspond to a site name listed in the sites catalog.
 
@@ -31,5 +31,23 @@
 INSTALLED and INTEL32::LINUX respectively.
 
 The profiles field should be set to null if no profile entries are to
-be specified, or should contain the profile entries separated by
-semicolons.
+be specified.
+
+Setting Environment Variables
+~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+It is often useful to set environment variables when running an application.
+This can be accomplished using *env* in the profile entry. For example,
+the following application sets an environment variable called R_LIBS to
+/home/user/R_libs.
+-----
+localhost	R	/usr/bin/R	INSTALLED	INTEL32::LINUX	env::R_LIBS=/home/user/r_libs
+-----
+
+Setting Multiple Profiles
+~~~~~~~~~~~~~~~~~~~~~~~~~
+Multiple profile entries can be added by using a semicolon. The example below
+sets two environment variables: R_LIBS and R_HOME.
+
+-----
+localhost       R       /usr/bin/R      INSTALLED       INTEL32::LINUX  env::R_LIBS=/home/user/r_libs;env::R_HOME=/home/user/r
+-----




More information about the Swift-commit mailing list