Chatee ahora con Soporte
Chat con el soporte

Privilege Manager for Unix 7.0 - Administration Guide

Introducing Privilege Manager for Unix Planning Deployment Installation and Configuration Upgrade Privilege Manager for Unix System Administration Managing Security Policy The Privilege Manager for Unix Security Policy Advanced Privilege Manager for Unix Configuration Administering Log and Keystroke Files InTrust Plug-in for Privilege Manager for Unix Troubleshooting Privilege Manager for Unix Policy File Components Privilege Manager for Unix Variables
Variable names Variable scope Global input variables Global output variables Global event log variables PM settings variables
Privilege Manager for Unix Flow Control Statements Privilege Manager for Unix Built-in Functions and Procedures
Environment functions Hash table functions Input and output functions LDAP functions LDAP API example List functions Miscellaneous functions Password functions Remote access functions String functions User information functions Authentication Services functions
Privilege Manager for Unix programs Installation Packages

length

Syntax
int length( list|string X )
Description

length returns the number of elements in the specified list or the number of characters in the specified string.

Example
trustedusers={"jamie", "cory", "robyn"}; 
print(length(trustedusers)); 

lsubst

Syntax
string lsubst( list X, string pattern, string replacement )
Description

lsubst substitutes part of a string with another string throughout all or a specified part of a list X.

Example
print(lsubst({"xxxonexxx","xxxonexxx"},"one","two")); 

#prints the following list 
#"{xxxtwoxxx,xxxtwoxxx}" 

range

Syntax
list range( list X, int begin, int end )
Description

The range function returns a subset of the elements from list X. The subset of elements in the range specified by begin and end. Any value for end greater than the length of the list is the same as end.

Example
trustedusers={"jamie", "cory", "robyn"}; 
a=range(trustedusers, 1, 2); 

The value of a is set to: {"cory", "robyn"}

replace

Syntax
list replace( list X, int start, int end [, string s1, ...])
Description

The replace function deletes the elements between the start and end indices of the specified list and inserts the supplied strings in their place. If you do not specify any replacement string values, it replaces those elements with nothing; that is, it returns the list with the specified portion omitted.

Example
trustedusers={"jamie", "cory", "robyn"}; 
a=replace(trustedusers, 1, 1, "sandy"); 
print(a); // prints "{jamie, sandy, robyn}" 
Documentos relacionados

The document was helpful.

Seleccionar calificación

I easily found the information I needed.

Seleccionar calificación