Syntax
setenv ( string name, string value )
Description
The setenv procedure sets one or more environment variables in the runenv variable.
Example
#set the shell variable setenv("SHELL", "/opt/quest/bin/pmsh");
setenv ( string name, string value )
The setenv procedure sets one or more environment variables in the runenv variable.
#set the shell variable setenv("SHELL", "/opt/quest/bin/pmsh");
unsetenv( string env1 [, env2, …+ )
The unsetenv procedure removes the named environment variable from the runenv variable.
The following example deletes the PAGER and EDITOR environment variables from the runtime environment.
unsetenv("PAGER", "EDITOR");
These are the built-in hash table functions available to use within the policy file.
Name | Description |
---|---|
hashtable_add | Add a new list value to a hash table. |
hashtable_create | Create a new hash table. |
hashtable_enum | Enumerate entries in a hash table. |
hashtable_import | Import a hash table from a file. |
Look up a value in a hash table. |
int hashtable_add ( int hid, string key , list value)
hashtable_add adds a new list value to the specified hash table, associated with the specified key.
Returns 0 if the hash table was successfully added, otherwise returns non-zero.
hid=hashtable_create(); hashtable_add(hid, "unxadm", {"johnd", "davel", "jamesp"}); hashtable_add(hid, "winadm", {"marym", "stevec", "janel"}); print("Windows Admin Group:" + hashtable_lookup(hid, "winadm"));
© ALL RIGHTS RESERVED. 이용 약관 개인정보 보호정책 Cookie Preference Center