DEIMOS
lasttvimage script

Name

lasttvimage -- return full disk name of the most recent TV image

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/10/09/09/deimos_195121_935.fits

2) Return the tail of the latest image:
lastimage -tail
returns
deimos_195121_935.fits

See Also

The shell script lasttvimage
DEIMOS script index


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

Last modified: Tue May 29 19:54:59 2012