Changeset 9355 for trunk/MagicSoft/Mars/datacenter/scripts/runreflector
- Timestamp:
- 02/19/09 21:22:19 (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/datacenter/scripts/runreflector
r9173 r9355 59 59 } 60 60 61 62 scriptlog=$runlogpath/run$program-$datetime.log63 date >> $scriptlog 2>&164 65 61 # get sequence # 66 gettodo "1" >> $scriptlog 2>&162 gettodo "1" 67 63 run=${primaries[0]} 68 64 # get reflector runnumber … … 72 68 # lock sequ 73 69 lockfile=$lockpath/lock-$table-$column-$reflectorrunno.txt 74 checklock >> $scriptlog 2>&170 checklock 75 71 76 echo "run $program for run $run..." >> $scriptlog 2>&177 72 printprocesslog "INFO starting $program for run $run" 78 73 79 setstatus "start" >> $scriptlog 2>&174 setstatus "start" 80 75 81 echo "run $program for run $run " 82 echo "create input card... " 76 printprocesslog "INFO create input card... " 83 77 84 78 # get values for inputcard … … 100 94 infile=$mcpath"/corsika/"$date"/cer"`printf %06d \`sendquery\`` 101 95 102 echo "" >> $scriptlog 2>&1 103 echo "INPUTCARD:" >> $scriptlog 2>&1 104 echo "----------" >> $scriptlog 2>&1 105 echo "" >> $scriptlog 2>&1 106 echo "" >> $scriptlog 2>&1 107 printinputcard >> $scriptlog 2>&1 108 109 makedir $outpath >> $scriptlog 2>&1 96 makedir $outpath 110 97 if ls $outfile >/dev/null 2>&1 111 98 then … … 127 114 128 115 case $check1 in 129 0) echo " check1=$check1 -> everything ok " >> $scriptlog 2>&1 130 printprocesslog "INFO $program finished successfully for run $reflectorrunno" 116 0) printprocesslog "INFO $program finished successfully for run $reflectorrunno (check1=$check1)" 131 117 ;; 132 *) echo " check1=$check1 -> ERROR -> step has to be repeated" >> $scriptlog 2>&1 133 printprocesslog "ERROR $program failed for run $reflectorrunno" 118 *) printprocesslog "ERROR $program failed for run $reflectorrunno (check1=$check1)" 134 119 com=$Freflector 135 120 check=$check1 … … 137 122 esac 138 123 139 setstatus "stop" >> $scriptlog 2>&1124 setstatus "stop" 140 125 141 finish >> $scriptlog 2>&1126 finish 142 127
Note:
See TracChangeset
for help on using the changeset viewer.