osf_test


This utility can be used to search an OPUS OSF blackboard for OSFs that match some search criteria. The qualifying OSFs can be printed in their entirety, or sub-fields of the OSF can be printed by using special command line print options.

NOTE: When running on a case sensitive operating system (e.g. UNIX), you must supply values that match the case of the OSF blackboard (typically lowercase).

Usage: osf_test -p pathfile

The pathfile argument is required. All others are optional. Any OSF selection options omitted are replaced with default search characters that will match all OSFs. If the print options (-pr) are omitted, the entire OSF is printed.

Context

Inputs

Outputs

Exit Status

Constraints

Qualifiers

-p

-f

-t

-n

-c

-s

-m

-x

-pr

Examples

% osf_test -p otfcal -f u2440101t

Finds OSF under otfcal blackboard matching dataset name "u2440101t". Prints the entire OSF to the screen.

% osf_test -p otfcal -c CA -s e -pr dataset data_id

Finds OSFs under otfcal blackboard with value 'e' in the CA column. Prints the dataset and data_id fields of these OSFs, separated by a space, to the screen.

% osf_test -p otfcal -f u2440101t -pr CA

Finds the OSFs under otfcal blackboard matching dataset name "u2440101t" and prints the value of the CA status column to the screen. To catch this value in a UNIX Bourne shell script variable, you could use:

calstatus=`osf_test -p otfcal -f u2440101t -pr CA`