Usage Example - Inquiry Operations

Inquiry Operations

Procedure used: ./images/inquiry.spi


.OPERATION: [file] = 'img000' ;   String variable assignment
.
.OPERATION: IQ DIR  [exists] ;   Query existence of directory
.QUERY EXISTANCE OF DIRECTORY:    work ;   Directory
.OPERATION:    IF ([exists] .GT. 0) THEN ;   Conditional clause
.OPERATION:        SYS ;   Operating System call
.SYSTEM COMMAND:       echo "Dir: work exists "
.OPERATION:    ENDIF ;   End of conditional clause
.
.OPERATION: IQ FI  [exists],[isopen] ;   Query existence of file
.QUERY EXISTANCE OF FILE:    img000 ;   File name
.
.OPERATION: IQ GONE  [waited] ;   Wait until file disappears
.WAIT FOR DISAPPEARANCE OF FILE:    img000 ;   File name
.DELAY INTERVAL AND MAXIMUM WAIT:    1, 360000 ;   Seconds delay between queries & max overall wait
.
.OPERATION: IQ SYNC  [waited] ;   Wait until file exists
.WAIT FOR EXISTENCE OF FILE:    img000 ;   File name
.DELAY INTERVAL AND MAXIMUM WAIT:    1, 360000 ;   Seconds delay between queries & max overall wait
.
.OPERATION: IQ SYNC D [waited] ;   Wait until file exists then delete it
.WAIT FOR EXISTENCE OF FILE:    img000 ;   File name
.DELAY INTERVAL AND MAXIMUM WAIT:    1, 360000 ;   Seconds delay between queries & overall wait
.
.OPERATION: IQ WO ;   Lists values occuring at 4 bytes inside any file
.WAIT FOR EXISTENCE OF FILE:    img000 ;   File name
.STARTING BYTE:    9 ;   Value in 4 bytes: 9..12
.



RESULTS FILE