res=`echo $line | grep
[
prefix_identifier
.]
property_name
[.
suffix_identifier
]
`
if [ $res ]; then
ExpValue=`echo $res | cut -d "=" -f2`
For example, to read the custom
env.path.jar
prerequisite property and check
whether the JRE is set in the
PATH
variable:
res=`echo $line | grep
env.path.jar
`
if [ $res ]; then
ExpValue=`echo $res | cut -d "=" -f2`
In the example:
echo "\`wrlTrace "Starting" "
env.path.jar
"\`"
>>/tmp/prs.check
echo "\`wrlTrace "Executing" "
env.path.jar
"\`"
>>/tmp/prs.check
echo "\`wrlDebug "Starting" "
env.path.jar
"\`" >>/tmp/prs.check
echo "\`wrlDebug "Expected" "ExpValue" \`" >>/tmp/prs.check
3.
Call logging functions for trace and debug data before calling the custom
collector.
echo "\`wrlTrace "Starting" "
[
prefix_identifier
.]
property_name
[.
suffix_identifier
]
"\`"
>>/tmp/prs.check
echo "\`wrlTrace "Executing" "
[
prefix_identifier
.]
property_name
[.
suffix_identifier
]
"\`"
>>/tmp/prs.check
echo "\`wrlDebug "Starting" "
[
prefix_identifier
.]
property_name
[.
suffix_identifier
]
"\`" >>/tmp/prs.check
echo "\`wrlDebug "Expected" "ExpValue" \`" >>/tmp/prs.check
4.
Call the custom collector.
Note:
If the custom collector has subtypes, that is, [
suffix_identifier
] in the file
name and needs additional checks based on subtype, pass the
[
differentiator_suffix_identifier
] differentiator for the subtype to the custom
collector.
echo "ss=\`./
[
prefix_identifier
.]
property_name
[.
suffix_identifier
]
[
differentiator_suffix_identifier
]
\`" >>/tmp/prs.check
In the example:
echo "ss=\`./
env.path.jar
\`" >>/tmp/prs.check
Note:
Examples of differentiators for the
script_name
subtype for the
os.file.
script_name
prerequisite properties are the paths to the scripts that are
passed to the
os.filepath
collector:
echo "ss=\`./os.filepath /usr/bin/expect\`" >>/tmp/prs.check #os.file.expect
echo "ss=\`./os.filepath /usr/bin/tar\`" >>/tmp/prs.check #os.file.tar
echo "ss=\`./os.filepath /usr/bin/gzip\`" >>/tmp/prs.check #os.file.gzip
5.
Call the logging functions for trace and debug data upon exiting the custom
collector.
echo "\`wrlTrace "Finished" "
[
prefix_identifier
.]
property_name
[.
suffix_identifier
]
"\`" >/tmp/prs.check
echo "echo \"
[
prefix_identifier
.]
property_name
[.
suffix_identifier
]
=\$ss\"" >>/tmp/prs.check
echo "\`wrlDebug "Finished" "
[
prefix_identifier
.]
property_name
[.
suffix_identifier
]
"\`"
>>/tmp/prs.check
echo "\`wrlDebug "OutPutValueIs" \$ss\`" >/tmp/prs.check
echo "\`wrlTrace "Done" "
[
prefix_identifier
.]
property_name
[.
suffix_identifier
]
"\`"
>>/tmp/prs.check
fi
In the example:
echo "ss=\`./
env.path.jar
\`" >>/tmp/prs.check
echo "\`wrlTrace "Finished" "
env.path.jar
"\`"
>>/tmp/prs.check
echo "echo \"
env.path.jar
=\$ss\"" >>/tmp/prs.check
52
Prerequisite Scanner: User's Guide
Summary of Contents for Prerequisite Scanner
Page 1: ...Prerequisite Scanner Version 1 1 1 10 User s Guide ...
Page 2: ......
Page 3: ...Prerequisite Scanner Version 1 1 1 10 User s Guide ...
Page 8: ...vi Prerequisite Scanner User s Guide ...
Page 10: ...viii Prerequisite Scanner User s Guide ...
Page 40: ...Figure 6 result txt file on Windows systems 30 Prerequisite Scanner User s Guide ...
Page 46: ...36 Prerequisite Scanner User s Guide ...
Page 68: ...58 Prerequisite Scanner User s Guide ...
Page 78: ...Figure 11 precheck log file with the debug data 68 Prerequisite Scanner User s Guide ...
Page 84: ...74 Prerequisite Scanner User s Guide ...
Page 88: ...78 Prerequisite Scanner User s Guide ...
Page 92: ...82 Prerequisite Scanner User s Guide ...
Page 116: ...106 Prerequisite Scanner User s Guide ...
Page 122: ...112 Prerequisite Scanner User s Guide ...
Page 136: ...126 Prerequisite Scanner User s Guide ...
Page 138: ...128 Prerequisite Scanner User s Guide ...
Page 140: ...130 Prerequisite Scanner User s Guide ...
Page 158: ...148 Prerequisite Scanner User s Guide ...
Page 164: ...154 Prerequisite Scanner User s Guide ...
Page 166: ...156 Prerequisite Scanner User s Guide ...
Page 170: ...160 Prerequisite Scanner User s Guide ...
Page 171: ......
Page 172: ... Printed in USA ...