Purpose
Seeks the newest image in the current nightly
directory, and returns its full disk name.
Usage
lastimage [-tail]
Arguments
-tail = print only the tail of the filename
Output
The full or tail of the disk name is echoed to stdout
Exit values
0 = normal exit
1 = no images found
-1 = output directory not found
Example
1) Return the full name of the latest image
lasttvimage
returns
/s/nightly2/02/06/25/cam0000.fits
2) Return the tail of the latest image
lastimage -tail
returns
cam0000.fits