지금 지원 담당자와 채팅
지원 담당자와 채팅

Privilege Manager for Unix 6.1 Common Documents - Administration Guide

One Identity Privileged Access Suite for Unix 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 Troubleshooting Privilege Manager for Unix Policy File Components Privilege Manager Variables Privilege Manager for Unix Flow Control Statements Privilege Manager for Unix Built-in Functions and Procedures Privilege Manager programs Installation Packages

mktemp

Syntax
string mktemp ( string template )
Description

mktemp returns a unique filename which is guaranteed not to exist on the policy server. Use the mktemp function to create unique temporary filenames.

NOTE: For more information, see the mktemp(3) man page.

Example
#generate a unique filename–the XXXXXX chars will be replaced to construct a unique name 
filename=mktemp("/tmp/pmXXXXXX"); 
print(filename); // prints "/tmp/pmAxK2de"

osname

Syntax
string osname( )
Description

osname returns an internal string representation of the operating system on the policy server, such as aix43-rs6k, linux-x86_64.

Example
printf("Policy server is running on OS:%s\n", osname()); 

quote

Syntax
string quote( string str [, string esc] )
Description

The quote function puts the specified string between quotation marks. It inserts the "\" (backslash) character as required to "quote" any occurrences of the characters in the second argument to indicate that they are taken literally. Useful when parsing arguments into commands which are shell scripts. The default escape character is a single quote.

Example
#this function will return: "This won\'t fail." 
quote("This won't fail.", "'");

rand

Syntax
int rand(int max )
Description

rand returns a random number less than the specified maximum.

Example
# print a random item from a list 
print(alist[rand(length(alist)]);
관련 문서