DEIMOS
lastfile script

Name

lastfile -- return the FRAMENO for the last saved image

Purpose

Check the OUTDIR directory for the highest numbered
*.fits file, and return that value.

Usage

lastfile

Arguments

none

Output

index number of the last image (leading zeros removed), or
0 if no images were found in directory, or
-1 if output directory was not found

Exit values

0 = normal exit
1 = no images found
-1 = output directory not found

Example

To get the frame number of the last image taken, type:
lastfile

See Also

The shell script lastfile
DEIMOS script index


Go to: DEIMOS Home Page - Instruments Home Page - Keck Home Page

Last modified: Wed Jun 9 16:30:29 2004