- Timestamp:
- 02/01/06 18:04:43 (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/datacenter/scripts/checkfilesforsequenceavail
r7465 r7471 103 103 no=`printf %08d $sequence | cut -c 0-4` 104 104 no2=`printf %08d $sequence` 105 var1=$no 106 var2=$no2 105 107 outpath=$logpath/$program/$no 106 108 echo "outpath: "$outpath >> $scriptlog 2>&1 … … 109 111 sequencefile=$sequpath/$no/sequence$no2.txt 110 112 113 echo "run $program..." >> $scriptlog 2>&1 114 setstatus "start" >> $scriptlog 2>&1 115 111 116 check1=`root -q -b $macrospath/checkfileavail.C+\(\""$sequencefile\""\) | tee $outpath/checkfileavail-$sequence.log | grep int | sed -e 's/(int)//'` 112 117 113 118 case $check1 in 114 1) echo "check1=$check1 -> everything ok -> setting status..." >> $scriptlog 2>&1 115 statustime="Now()" 116 failed="NULL" 117 starttime="NULL" 118 failedtime="NULL" 119 var1=$no 120 var2=$sequence 121 setstatus 122 ;; 123 *) echo "check1=$check1 -> ERROR -> step has to be repeated" >> $scriptlog 2>&1 ;; 119 1) echo "check1=$check1 -> everything ok -> setting status..." >> $scriptlog 2>&1 ;; 120 *) echo "check1=$check1 -> ERROR -> step has to be repeated" >> $scriptlog 2>&1 121 com="checking availability of files for sequence $sequence failed" 122 check=$check1 123 ;; 124 124 esac 125 126 echo "inserting the status for $program for sequence $sequence into the db" >> $scriptlog 2>&1 127 setstatus "stop" >> $scriptlog 2>&1 125 128 done 126 129
Note:
See TracChangeset
for help on using the changeset viewer.