DEIMOS
nextfile script

Name

nextfile -- return one plus the FRAMENO of the last saved image

Purpose

Check the OUTDIR directory for the highest numbered
*.fits* file, and return that value PLUS ONE. If no images
matching the template are found in the directory, return 1.

Usage

nextfile

Arguments

none

Output

1+index number of the last image (leading zeros removed), or
-1 if output directory was not found

Exit values

0 = normal exit
-1 = output directory not found

Example

To get the index number one above the last saved image, type
nextfile

See Also

The shell script nextfile
DEIMOS script index


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

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