Converse agora com nosso suporte
Chat com o suporte

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

Input and output functions

These are the built-in input and output functions available to use within the policy file.

Table 36: Input and output functions
Name Description

fprintf

Write a string to a file on the policy server.

input

Request input from the user.

inputnoecho

Request input from the user without echoing to the screen.

print

Print a string to stdout with newline.

printf

Print a string to stdout.

printnnl

Print a string to stdout without newline.

printvars

Print the policy variables to stdout.

readdir

Return the list of entries in a directory as a string.

readfile

Read from a file on the policy server.

sprintf

Format a string.

syslog

Log a message to the syslog file.

fprintf

Syntax
fprintf ( string filename, string format [, string expression...] )
Description

The fprintf function is similar to printf except that the first argument is a filename. It appends the formatted string to the specified file.

For more information about formatting parameters, see the printf(3) man page.

Example

This example appends the string "End of file" to the pmlog file in the specified format.

fprintf("/var/adm/pmlog", "%s\n", "End of file";
Related Topics

printf

print

input

Syntax
string input( string prompt )
Description

input prompts the user to enter a single line of input and returns the entered string.

If the user enters a string, use the atoi function to convert the string to an integer.

Example
menu_selection = input("Enter your selection: "); 
switch(atoi(menu_selection)) {
 … 
} 
Related Topics

atoi

inputnoecho

inputnoecho

Syntax
string inputnoecho( string prompt )
Description

inputnoecho prompts the user for a single line of input. The input is not displayed on the screen as it is typed.

Example
Instr = inputnoecho("Enter Selection: "); 
if (Instr in allowed_strs) {
 …. 
} 
Related Topics

input

Documentos relacionados

The document was helpful.

Selecione a classificação

I easily found the information I needed.

Selecione a classificação