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
Contains the actual value for a prerequisite property.
String
$expected
Contains the expected value for a prerequisite property.
Return values
Integer
1
Returns 1 if the function does not receive two input parameters.
String
"FAIL|PASS"
Returns the string "FAIL" if the actual value is less than the expected value;
otherwise, it returns the string "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
Contains the actual value for a prerequisite property.
String
$expected
Contains the expected value for a prerequisite property.
Return values
Integer
1
Returns 1 if the function does not receive two input parameters.
Appendix I. Common functions for UNIX systems
137
Содержание Prerequisite Scanner
Страница 1: ...Prerequisite Scanner Version 1 1 1 10 User s Guide ...
Страница 2: ......
Страница 3: ...Prerequisite Scanner Version 1 1 1 10 User s Guide ...
Страница 8: ...vi Prerequisite Scanner User s Guide ...
Страница 10: ...viii Prerequisite Scanner User s Guide ...
Страница 40: ...Figure 6 result txt file on Windows systems 30 Prerequisite Scanner User s Guide ...
Страница 46: ...36 Prerequisite Scanner User s Guide ...
Страница 68: ...58 Prerequisite Scanner User s Guide ...
Страница 78: ...Figure 11 precheck log file with the debug data 68 Prerequisite Scanner User s Guide ...
Страница 84: ...74 Prerequisite Scanner User s Guide ...
Страница 88: ...78 Prerequisite Scanner User s Guide ...
Страница 92: ...82 Prerequisite Scanner User s Guide ...
Страница 116: ...106 Prerequisite Scanner User s Guide ...
Страница 122: ...112 Prerequisite Scanner User s Guide ...
Страница 136: ...126 Prerequisite Scanner User s Guide ...
Страница 138: ...128 Prerequisite Scanner User s Guide ...
Страница 140: ...130 Prerequisite Scanner User s Guide ...
Страница 158: ...148 Prerequisite Scanner User s Guide ...
Страница 164: ...154 Prerequisite Scanner User s Guide ...
Страница 166: ...156 Prerequisite Scanner User s Guide ...
Страница 170: ...160 Prerequisite Scanner User s Guide ...
Страница 171: ......
Страница 172: ... Printed in USA ...