#!/bin/csh -e ############################################################################# # Copyright: J.Brewer/ESO 1999.############################################## ############################################################################# # # Name: ObsLogD # Description: This script will create a catalogue of FITS files # which exist on a `D'isk. The real work of the script is done # by ObsLog.csh, though this script controls provides a print # option either upon completion or after an interrupt (^c). # # Note that ObsLogD was written so that it was not necessary to # have print abilities in ObsLog.csh -- in this way ObsLog.csh # can be used by ObsLogT and ObsLogN. # # # Author: James Brewer, jbrewer@eso.org # Version: 1.0, 5 May99: First release # ############################################################################# # # Check script arguments... # if($#argv == 0 || $1 == "-help") then goto error endif # # Set path needed for other execs... # set path = ($path ~meteolog/scripts) # # Define action on interrupt (^c)... # onintr cleanup # # Make the observing log, and cleanup # ObsLog.csh $* goto cleanup exit(0) cleanup: # # Call up the log printing command... # ObsLog.prt exit(0) error: echo "Usage: "$0" file1 file2 filen (wildcards expanded)" echo " " echo "[Further information --> "$0" -help]" echo "[See this script --> more `which "$0"`]" if($1 == "-help") then more `echo $0 | sed -e s/ObsLogD/ObsLog.man/` endif exit(-1)