Converse agora com nosso suporte
Chat com o suporte

Privilege Manager for Unix 7.2.3 - 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

getopt_long

Syntax
int getopt_long ( string argv, string optstring, string long_options))
Description

getopt_long breaks up command lines for easier parsing and legal review. It examines a list of arguments for short or long options.

The function works in posixly correct mode and does not reorder arguments. However, if you unset the POSIXLY_CORRECT environment option, it reorders the argv variable as it scans, placing all nonoptions at the end of the list.

Example
while ((option = getopt_long(args, "vh",{"verbose","help"})) !=""){
print("Matched option",option);
}

getopt_long_only

Syntax
int getopt_long_only ( string argv, string optstring, string long_options))
Description

getopt_long breaks up command lines for easier parsing. It examines a list of arguments for only long options.

The function works in posixly correct mode and does not reorder arguments. However, if you unset the POSIXLY_CORRECT environment option, it reorders the argv variable as it scans, placing all nonoptions at the end of the list.

Example
while ((option = getopt_long_only(args, "vh",{"verbose","help"})) !=""){
print("Matched option",option);
}

glob

Syntax
int glob ( string pattern, string str )
Description

glob matches a string to a pattern. This match is often used for filenames since the patterns are the same ones that the UNIX shell uses for filename matching.

For more information, see the fnmatch(3) man page.

Returns true if the string matches the pattern, otherwise false.

Example
#this returns true because the “*” wildcard character matches any number of any character 
glob("a*b", "axyzb") 

#this returns true because the “.” Is interpreted as a literal period char. 
glob("a.*b", "a.fgb")
Table 41: Search patterns
j*

j followed by any number of characters.

j*e

j followed by any number of characters, ending with an e.

[jJ]*

Upper or lower case j followed by any number of characters.

[a-z]

Any lower case character.

[^a-z]

Any character except lower case characters.

j?

j followed by a single character.

ingroup

Syntax
int ingroup ( string user, string group )
Description

ingroup returns true if the specified user is in the specified UNIX group on the policy server; otherwise returns false.

Example
if (ingroup("cory", "admin") ) { 
   accept; 
}
Related Topics

innetgroup

Documentos relacionados

The document was helpful.

Selecione a classificação

I easily found the information I needed.

Selecione a classificação