Purpose

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

Usage

lastfiler

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 RED image taken, type

lastfiler