These are the built-in input and output functions available to use within the policy file.
Name | Description |
---|---|
Write a string to a file on the policy server. | |
Request input from the user. | |
Request input from the user without echoing to the screen. | |
Print a string to stdout with newline. | |
Print a string to stdout. | |
Print a string to stdout without newline. | |
Print the policy variables to stdout. | |
Return the list of entries in a directory as a string. | |
Read from a file on the policy server. | |
Format a string. | |
Log a message to the syslog file. |
fprintf ( string filename, string format [, string expression...] )
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.
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";
string input( string prompt )
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.
menu_selection = input("Enter your selection: "); switch(atoi(menu_selection)) { … }
string inputnoecho( string prompt )
inputnoecho prompts the user for a single line of input. The input is not displayed on the screen as it is typed.
Instr = inputnoecho("Enter Selection: "); if (Instr in allowed_strs) { …. }
© 2024 One Identity LLC. ALL RIGHTS RESERVED. Conditions d’utilisation Confidentialité Cookie Preference Center