Tchater maintenant avec le support
Tchattez avec un ingénieur du support

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

quote

Syntax
string quote( string str [, string esc[, string surrounding_string]] )
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. The string is surrounded by a "surrounding_string" and defaults to the value of esc, which is optional and defaults to the value of the specified escape character. UThe quote function is 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)]);

stat

Syntax
list stat ( string fn )
Description

stat returns information about a specified file on the policy server.

If the file fn exists on the policy server, stat returns the following list of values:

  • File size in bytes
  • File owner as username
  • File group as groupname
  • File permissions as octal
  • File change date in the format: YYYY/MM/DD
  • File change time in the format: HH:MM:SS
  • File change time in the format: seconds since the epoch
  • File access date in the format: YYYY/MM/DD
  • File access time in the format: HH:MM:SS
  • File access time in the format: seconds since the epoch
  • File modification date in the format: YYYY/MM/DD
  • File modification time in the format: HH:MM:SS
  • File modification time in the format: seconds since the epoch
  • File inode number

strftime

Syntax
string strftime (string format )
Description

strftime formats dates and times.

For more information on the standard formats for dates and times, refer to the strftime(3) man pages.

Table 42: Standard date and time formats
%d Day of the month
%H 24 hour format
%I 12 hour format
%j Day of the year
%m Month number
%M Minute
%S Seconds
%w Weekday name

%h

Abbreviated month name

Example
strftime("%m/%d/%Y") strftime("%H:%M") 

Returns the current date and time formatted, as follows:

03/17/2012 
13:05 
Documents connexes

The document was helpful.

Sélectionner une évaluation

I easily found the information I needed.

Sélectionner une évaluation