Getvalue(); Setvalue(); Copyvalue() - IBM Prerequisite Scanner User Manual

Table of Contents

Advertisement

Return values
String SOLARISSPARC|SOLARISX86

getValue()

Gets the value for a key in a specified file if the key exists.
Purpose
Syntax
getValue key file
Input parameters
String $key
String $file
Return values

setValue()

Sets the value for a key in a specified file if the prerequisite property exists.
Purpose
Syntax
setValue key value file
Input parameters
String $key
String $value
String $file
Return values

copyValue()

Gets and sets the value for the prerequisite property (key) based on the product
and operating system.
Purpose
This function calls the getValue() function to get the value for the specified
prerequisite property for the product and operating system. It then calls the
setValue() function to set the value for the prerequisite property in the prerequisite
scanner file.
Returns "SOLARISSPARC" if the -p flag is "sparc"; otherwise, it returns
"SOLARISX86".
Contains the key to set.
Contains the name of the file that contains the key.
Contains the prerequisite property to set.
Contains the value for the prerequisite property.
Contains the name of the file that contains the prerequisite property.
Appendix J. Other functions for UNIX systems
145

Advertisement

Table of Contents
loading

Table of Contents