#!/bin/csh
#
# Get GFS files for ETI analysis

# contact  : chsegura@udec.cl
# last mod : 2020-07-28
############################################

set diri=/home/matlab/hw_dynamic

set lout1=`date +%Y`
set lout2=`date +%m`
set lout3=`date +%d`

set lout4=`date +%H`
set lout5=`date +%M`
set lout6=`date +%S`

set hora=`date +%H`

#foreach hracb ( 14 16 18 20 22 )
foreach hracb ( 13 15 17 19 21)
#foreach hracb ( 14 16 18 20)
#foreach hracb ( 13 14 15 16 17 18 19 20 21 22 23 )
	if ( ${hracb} == ${hora} ) then
		${diri}/ETI/runSETI.csh > ${diri}/ETI/logfiles/${lout1}-${lout2}-${lout3}_${lout4}':'${lout5}':'${lout6}.log
	else
		echo "The running hours were changed, try next time :("
	endif
end


