Purpose
With no argument, wait for a new image to be written to disk
in the output directory, and print the name of the image to STDOUT.
With an argument, loop until the named image is written to disk.
Usage
wfib [-nowait] [-silent] [image]
Arguments
-nowait = do not wait if image not in progress; return immediately
-silent = do not print image name
image = name of the image for which to wait. This should be
the TAIL of the filename only (omit directory component)
Output
Full image name is written to stdout.
Restrictions
- If started during image readout, will not return the current image
Exit values
0 = normal completion
1 = wrong number of arguments
Example
1) Wait until next image has been written to disk
wfib
2) Wait until image lblue0001.fits has been written to disk
wfib lblue0001.fits
3) Wait only if an image is being taken...
wfib -n