Syntax
string getenv ( string name [, string value] )
Description
getenv returns the value of the specified environment variable from the runenv variable.
Example
# print the value of HOME if defined, otherwise print "none"
print(getenv("HOME", "none"));
Syntax
list getlistsetting ( string <variable_name>)
Description
getlistsetting returns a list of the settings in the pmpolicy server host settings file. If the named config is not present in the policy server host setting file, it returns an empty list.
Example
# get the master list setting
submitMasterList(getlistsetting("submitmasters"));
Syntax
int getnumericsetting ( string <variable_name>)
Description
getnumericsetting returns the integer of the numeric setting in the pmpolicy server host settings file. If the named config is not present in the policy server host setting file, it returns zero.
Example
# get the value for master delay time
delayTime(getnumericsetting("masterdelay"));
Syntax
string getstringsetting ( string variable_name)
Description
getstringsetting returns the value of a string setting in the pmpolicy server host settings file. If the named config is not present in the policy server host setting file, it returns an empty string.
Example
if (getstringsetting("eventLogQueue") == false ) {
reject;
}