PREP_PROCESS - Querying the UNIX File System

AE supplies the utility UCXE???F which can be used to query the UNIX file system. The question marks are placeholders for the UNIX system's system ID and version number.

Using this utility extends the query options compared to the usual OS command ls. To obtain information about the UNIX file system, you must specify the parameters of the script statement PREP_PROCESS in a specific syntax.

In one of this script function's parameters, you can specify the file name including the path. This parameter starts with the keyword PATH. To specify the file name, you can use the wildcards (*) and (?). Star (*) represents any number of characters, (?) represents exactly one. The current directory is used if neither path nor file name are specified. Relative path indications are not yet supported.

A different parameter starts with the keyword FSPAR. It stores the specifications for querying the file system. These specifications consist of a keyword and a value. Several additional specifications must be separated with a blank. Enclose a value in double quotation marks if it includes a blank (for example, ATIME="980101 1000").

Notes:

SIZE can only be specified for regular files. If SIZE has been defined, the TYPE definition is internally set to a regular file. The file size is specified in bytes.

The following date and time formats can be used to specify ATIME, MTIME and STIME. The following abbreviations are used: Y for the year, M for the month and D for the day. If no time is specified, AE uses the value 0000.

Example

All home-directory files with the ID AE which were last accessed between 6 October 1997, 12:00 and 31 December 1998, 23:50 and which have a file size between 1 and 9999 bytes are listed. All subdirectories of the home directory are considered.

:SET &HND = PREP_PROCESS('SOLARIS','UNIXFS','*','UC_LOGIN=AE','PATH=./*', 'FSPAR=ATIME="19971006 1200","19981231 2350" SIZE=1,9999 MODE=RECURSIVE')

See also: