Changeset 7471 for trunk/MagicSoft/Mars/datacenter/scripts/correcttime
- Timestamp:
- 02/01/06 18:04:43 (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/datacenter/scripts/correcttime
r7465 r7471 80 80 for run in ${runs[@]} 81 81 do 82 no=`printf %08d $run | cut -c 1-5` 83 var1=$no 84 var2=$run 82 85 echo "getting path for run $run ... " 83 86 infile=`find $datapath/rawfiles-wrong-timing/ -name *${run}_[D,C,P,S]_*` … … 94 97 95 98 check1=0 96 echo "run $program..." 99 echo "run $program..." >> $scriptlog 2>&1 100 setstatus "start" >> $scriptlog 2>&1 101 97 102 /home/tape/MagicReadout/correct_raw_time $infile $outfile > $timecorrpath/$program-$run.log 98 103 check1=$? 99 104 100 105 case $check1 in 101 1) echo "check1=$check1 -> everything ok -> setting status..." 102 no=`printf %08d $run | cut -c 1-5` 103 statustime="Now()" 104 failed="NULL" 105 starttime="NULL" 106 failedtime="NULL" 107 var1=$no 108 var2=$run 109 setstatus 110 ;; 111 *) echo "check1=$check1 -> ERROR -> step has to be repeated";; 106 1) echo "check1=$check1 -> everything ok -> setting status..." >> $scriptlog 2>&1 ;; 107 *) echo "check1=$check1 -> ERROR -> step has to be repeated" >> $scriptlog 2>&1 ;; 108 com="time correction for run $run failed" 109 check=$check1 110 ;; 112 111 esac 112 echo "inserting the status for $program for run $run into the db" >> $scriptlog 2>&1 113 setstatus "stop" >> $scriptlog 2>&1 113 114 done 114 115
Note:
See TracChangeset
for help on using the changeset viewer.