![]() ![]() |
![]() |
File: [Development] / JSOC / proj / workflow / checkbadtasks.csh
(download)
/
(as text)
Revision: 1.4, Thu Jul 17 21:08:11 2014 UTC (8 years, 10 months ago) by jeneen Branch: MAIN CVS Tags: Ver_9-2, Ver_9-1, Ver_9-0, Ver_8-8, Ver_8-7, Ver_8-6, Ver_8-12, Ver_8-11, Ver_8-10 Changes since 1.3: +1 -1 lines Changed linux_x86_64 to $JSOC_MACHINE. |
#! /bin/csh -f set TIME_CONVERT = /home/jsoc/cvs/Development/JSOC/bin/$JSOC_MACHINE/time_convert @ YEAR = `date +%Y` set bad = 0 foreach ticket ( $WORKFLOW_DATA/tasks/*/active/*$YEAR*/ticket ) @ lines = `wc -l $ticket | awk '{print $1}'` if ( $lines < 5 ) then echo "" echo "*** BAD TICKET(S) ***" ls $ticket set bad = 1 endif end foreach low ( `ls -1 $WORKFLOW_DATA/gates/*/low | grep -v lev0 | grep -v Synop | grep -v Limb` ) @ lines = `wc -l $low | awk '{print $1}'` if ( $lines < 1 ) then echo "" echo "*** BAD LOW FILE(S) ***" ls $low set bad = 1 endif set Ltime = `cat $low` @ Ltime_s = `$TIME_CONVERT time=$Ltime` if ( $Ltime_s < 0 ) then echo "" echo "*** BAD LOW FILE(S) ***" ls $low set bad = 1 endif end foreach high ( `ls -1 $WORKFLOW_DATA/gates/*/high | grep -v lev0 | grep -v Synop | grep -v Limb` ) @ lines = `wc -l $high | awk '{print $1}'` if ( $lines < 1 ) then echo "" echo "*** BAD HIGH FILE(S) ***" ls $high set bad = 1 endif set Htime = `cat $high` @ Htime_s = `$TIME_CONVERT time=$Htime` if ( $Htime_s < 0 ) then echo "" echo "*** BAD HIGH FILE(S) ***" ls $high set bad = 1 endif end foreach next ( $WORKFLOW_DATA/gates/*/nextupdate ) @ lines = `wc -l $next | awk '{print $1}'` if ( $lines < 1 ) then echo"" echo "*** BAD NEXTUPDATE FILE(S) ***" ls $next set bad = 1 endif set nextt = `cat $next` @ nextt_s = `$TIME_CONVERT time=$nextt` if ( $nextt_s < 0 ) then echo "" echo "*** BAD NEXTUPDATE FILE(S) ***" ls $next set bad = 1 endif end if ( $bad == 0 ) then echo "" echo "All tickets, low, high, and nextupdate files are OK." echo "" endif
Karen Tian |
Powered by ViewCVS 0.9.4 |