- Timestamp:
- 08/25/06 22:09:49 (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/datacenter/scripts/processmcsequences
r7938 r7944 32 32 # 33 33 34 source `dirname $0`/sourcefile 35 printprocesslog "INFO starting $0" 34 36 program=processmcsequences 35 source `dirname $0`/sourcefile36 37 37 38 set -C 38 39 39 scriptlogpath=$runlogpath/$program 40 makedir $scriptlogpath 41 scriptlog=$scriptlogpath/$program`date +%F-%H-%M-%S`.log 42 40 scriptlog=$runlogpath/$program`date +%F-%H-%M-%S`.log 43 41 date >> $scriptlog 2>&1 44 42 … … 56 54 57 55 # find montecarlo sequence files 56 printprocesslog "INFO processing mc sequences" 58 57 sequfiles=`find $mcsequpath -type f` 59 58 for sequfile in ${sequfiles[@]} … … 95 94 # if calibration worked -> run star for sequence 96 95 case $check1 in 97 0) echo "check1=$check1 -> everything ok..." >> $scriptlog 2>&1 96 0) echo " check1=$check1 -> everything ok..." >> $scriptlog 2>&1 97 printprocesslog "INFO calibrated mc sequende $sequno successfully" 98 98 touch $caloutpath/.done 99 99 rm $caloutpath/.doing … … 105 105 106 106 case $check2 in 107 0) echo "check2=$check2 -> everything ok..." >> $scriptlog 2>&1 107 0) echo " check2=$check2 -> everything ok..." >> $scriptlog 2>&1 108 printprocesslog "INFO run star successfully for mc sequende $sequno" 108 109 touch $imgoutpath/.done 109 110 ;; 110 *) echo "check2=$check2 -> ERROR -> step has to be repeated" >> $scriptlog 2>&1 111 *) echo " check2=$check2 -> ERROR -> step has to be repeated" >> $scriptlog 2>&1 112 printprocesslog "ERROR star failed for mc sequende $sequno" 111 113 ;; 112 114 esac 113 115 ;; 114 *) echo "check1=$check1 -> ERROR -> step has to be repeated" >> $scriptlog 2>&1;; 116 *) echo " check1=$check1 -> ERROR -> step has to be repeated" >> $scriptlog 2>&1 117 printprocesslog "ERROR callisto failed for mc sequende $sequno" 118 ;; 115 119 esac 116 120 done 117 121 118 rm -v $lockfile>> $scriptlog 2>&1122 finish >> $scriptlog 2>&1 119 123 120 set +C121 122 date >> $scriptlog 2>&1123
Note:
See TracChangeset
for help on using the changeset viewer.