Solaris Common Desktop Environment: Advanced User's and System Administrator's Guide

Using String Variables in an Action

A string variable definition remains in effect from the location of the definition to the end of the file. There are no global string variables for the database.

If a string variable and environment variable have the same name, the string variable has precedence.

To Define a String Variable

    Use the syntax:

	set variable_name=value

Variable names can contain any alphanumeric characters and underscore (_). Each variable definition must be on a separate line.

For example:

set Remote_Application_Server=sysapp
set Remote_File_Server=sysdata

To Reference a String Variable

    Use the syntax:

	$[{]variable_name[}]

For example:

EXEC-HOST			$Remote_Application_Server
CWD					/net/${Remote_File_Server}/doc/project