Changeset 9355 for trunk/MagicSoft/Mars/datacenter/scripts/runcorsika
- Timestamp:
- 02/19/09 21:22:19 (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/datacenter/scripts/runcorsika
r9347 r9355 111 111 112 112 113 scriptlog=$runlogpath/run$program-$datetime.log114 date >> $scriptlog 2>&1115 116 113 # get sequence # 117 gettodo "1" >> $scriptlog 2>&1114 gettodo "1" 118 115 run=${primaries[0]} 119 116 # get corsika runno … … 125 122 # lock sequ 126 123 lockfile=$lockpath/lock-$table-$column-$corsikarunno.txt 127 checklock >> $scriptlog 2>&1124 checklock 128 125 129 echo "run $program for run $run..." >> $scriptlog 2>&1130 126 printprocesslog "INFO starting $program for run $run" 131 127 132 setstatus "start" >> $scriptlog 2>&1128 setstatus "start" 133 129 134 echo "run $program for run $run " >> $scriptlog 2>&1 135 echo "create input card... " >> $scriptlog 2>&1 130 printprocesslog "INFO run $program for run $run " 131 printprocesslog "INFO create input card... " 136 132 137 133 # get values for inputcard … … 169 165 diameter=`sendquery` 170 166 171 echo "" >> $scriptlog 2>&1172 echo "INPUTCARD:" >> $scriptlog 2>&1173 echo "----------" >> $scriptlog 2>&1174 echo "" >> $scriptlog 2>&1175 echo "" >> $scriptlog 2>&1176 printinputcard >> $scriptlog 2>&1177 178 167 logfile=$outpath/$program"-"`printf %06d $corsikarunno`".log" 179 makedir $outpath >> $scriptlog 2>&1168 makedir $outpath 180 169 181 170 cd $corsikapath … … 192 181 193 182 case $check1 in 194 0) echo " check1=$check1 -> everything ok " >> $scriptlog 2>&1 195 printprocesslog "INFO $program finished successfully for corsika run number $corsikarunno" 183 0) printprocesslog "INFO $program finished successfully for corsika run number $corsikarunno (check1=$check1)" 196 184 ;; 197 *) echo " check1=$check1 -> ERROR -> step has to be repeated" >> $scriptlog 2>&1 198 printprocesslog "ERROR $program failed for corsika run number $corsikarunno" 185 *) printprocesslog "ERROR $program failed for corsika run number $corsikarunno (check1=$check1)" 199 186 com=$Fcorsika 200 187 check=$check1 … … 202 189 esac 203 190 204 setstatus "stop" >> $scriptlog 2>&1191 setstatus "stop" 205 192 206 finish >> $scriptlog 2>&1193 finish 207 194
Note:
See TracChangeset
for help on using the changeset viewer.