Parsedirparameter(); Printdirsize() - IBM Prerequisite Scanner User Manual

Table of Contents

Advertisement

parseDirParameter()

Parses the parameter from the parameter list for the scanner's -p flag and puts its
value in the list.
Purpose
Syntax
Input parameters
String
Return values

printDirSize()

Checks the NFS status of the mounted file system and then gets the disk space of
the file system or its parent directory.
Purpose
This function first calls the NFScheck function to determine the NFS status of the
directory. If the status is true, it calls the getClosestExistingParentDir function to
return the directory or its parent directory, and then use the df command to get the
amount of free disk space. It finally calls the formatSizeDisplay function to round
the value to decimal points.
Syntax
printDirSize dirpath
Input parameters
String $dirpath
Return values
Integer dsize
String "NFS_NOT_AVAILABLE"
Contains the path to the directory for which to get the free disk space.
Returns the amount of free disk space to within two decimal points.
Returns that the mounted filesystem is not available.
Appendix J. Other functions for UNIX systems
147

Advertisement

Table of Contents
loading

Table of Contents