Cutdown() - IBM Prerequisite Scanner User Manual

Table of Contents

Advertisement

Purpose
This function checks first that the function receives two input parameters. If it
receives them and they are not both false, it determines whether the values are in
MBs or GBs and then compares the two values to check whether the first value is
less than the second value. If it is, it returns a false value; otherwise it returns a
pass value.
Syntax
compare real expected
Input parameters
String $real
String $expected
Return values
Integer 1
String "FAIL|PASS"

cutdown()

Parses the input parameters that represent the actual and expected values for a
prerequisite property and compares them to determine whether the first value
(real) is less than the second value (expected). It then prints the difference between
the two values if the first value is not less than the second value.
Purpose
This function checks first that the function receives two input parameters. If it
receives them, it determines whether the values are in MBs or GBs and then
converts them to MBs if in GBs. It then compares the two values to check whether
the first value is less than the second value. If it is, it returns a "0MB" value;
otherwise it returns the difference between the two values in MB.
Syntax
cutdown real expected
Input parameters
String $real
String $expected
Return values
Integer 1
Contains the actual value for a prerequisite property.
Contains the expected value for a prerequisite property.
Returns 1 if the function does not receive two input parameters.
Returns the string "FAIL" if the actual value is less than the expected value;
otherwise, it returns the string "PASS".
Contains the actual value for a prerequisite property.
Contains the expected value for a prerequisite property.
Returns 1 if the function does not receive two input parameters.
Appendix I. Common functions for UNIX systems
137

Advertisement

Table of Contents
loading

Table of Contents