#! /bin/csh -x # getm1 - C Shell script to download data from OASIS mooring at M1 # and extract the data # set oasis = /oasis set can = m1 set tncaddr = "mbari-4 v mbari-2" cd $oasis/raw set noclobber set noglob set datafilebase = `date +%y%j` set failmail = "bobh@mbari.org" set i = 0 set datafile = $can.$datafilebase.00 while ( -e $datafile ) @ i++ set datafile = $can.$datafilebase.`printf "%02d" $i` end set errorfile = $oasis/$can/error/$datafile mailx -s "Cron Testing" $failmail << ! This is from test script test.3 `date` ! endif