- Timestamp:
- 02/19/09 21:22:19 (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/datacenter/scripts/makecallistolinks
r9107 r9355 41 41 set -C 42 42 43 scriptlog=$runlogpath/$program`date +%F`.log44 date >> $scriptlog 2>&145 46 43 # check if script is already running 47 44 lockfile=$lockpath/lock-$program.txt 48 checklock >> $scriptlog 2>&145 checklock 49 46 50 47 callistorcseq=callisto.rc … … 56 53 if [ ${#primaries[@]} -eq 0 ] 57 54 then 58 echo "nothing to do -> exit" >> $scriptlog 2>&159 finish >> $scriptlog 2>&155 printprocesslog "INFO nothing to do -> exit" 56 finish 60 57 fi 61 58 num=`expr ${#primaries[@]} / 2 ` … … 69 66 telnum=${primaries[$s+$s+1]} 70 67 callistorc=$datapath/callisto/`printf %08d $sequence | cut -c 0-4`/`printf %08d $sequence`/$callistorcseq 71 if ! ls -l $callistorc 2>/dev/null | grep $callistorcnew >> $scriptlog 2>&168 if ! ls -l $callistorc 2>/dev/null | grep $callistorcnew 72 69 then 73 70 printprocesslog "INFO linking $callistorcnew to $callistorc for sequ $sequence" 74 71 # resetting the calibration 75 echo "resetting the callisto for sequence $sequence" >> $scriptlog 2>&172 printprocesslog "INFO resetting the callisto for sequence $sequence" 76 73 77 74 query="UPDATE SequenceProcessStatus set fStartTime=NULL, fFailedTime=NULL, fProgramId=NULL, fReturnCode=NULL where fSequenceFirst=$sequence and fTelescopeNumber=$telnum" 78 if ! sendquery >> $scriptlog 2>&175 if ! sendquery 79 76 then 80 77 printprocesslog "ERROR resetting calibration failed for sequence $sequence" … … 85 82 86 83 #linking callisto.rc 87 if ln -vfs $setuppath/callisto/$callistorcnew $callistorc >> $scriptlog 2>&184 if ln -vfs $setuppath/callisto/$callistorcnew $callistorc 88 85 then 89 86 printprocesslog "INFO link callisto.rc successfully for sequence $sequence" … … 95 92 done 96 93 97 finish >> $scriptlog 2>&194 finish 98 95
Note:
See TracChangeset
for help on using the changeset viewer.