#! /bin/csh # err - C Shell script to get OASIS errors # set oasis = /oasis set errfile = `date -u +%y%j` set iserr = 0 foreach can (drift4 drift5 drift6) cd $oasis/$can/error if ( -e $errfile ) then echo $can cat $errfile set iserr = 1 endif end if ( ! $iserr ) echo "No OASIS errors today"