Purpose
Seeks the newest RED image in the current output
directory, and returns its full disk name.
Usage
lastimager [-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 red image
lastimager
returns
/s/sdata222/lris1/16nov2000/lred0113.fits
2) Return the tail of the latest red image
lastimager -tail
returns
lred0113.fits
3) Return the full name of the latest 3 red images
lastimager -n 3
returns
/s/sdata222/lris1/16nov2000/lred0111.fits
/s/sdata222/lris1/16nov2000/lred0112.fits
/s/sdata222/lris1/16nov2000/lred0113.fits