Previous Topic: Important Notes on ParametersNext Topic: Response Files for PIF Products


Example: Using Parameters to Control Access Rights

When defining files (#file) or directories (#dir) in the prototype file, you can use parameters to control the user, group, and file access rights, and assign appropriate read, write, or execute permissions. This can be useful if you want to install the PIF product for different users on different operating environments.

The following example shows the use of parameters for a #dir entry in the prototype file:

@DEFAULT:
#sys: Any ;
#parameter: $OWNER , root ;
#parameter: $GROUP , sys ;
#parameter: $ACCESS , drwxrwxrwx ;
@ENDDEFAULT:
@PRODUCT:
#phead: exampleOwnerParam , 1000 ;
#ppath: /tmp/exampleOwnerParam ;
#sys: Any ;
@ENDPROD:
@COMPONENT:
#chead: comp1 ;
#dir: mydir , $OWNER , $GROUP , $ACCESS ;
@ENDCOMP: