- Timestamp:
- 07/30/08 16:31:01 (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/datacenter/scripts/writesequencefiles
r9047 r9054 50 50 51 51 # get todo list 52 getdolist >> $scriptlog 2>&1 53 54 # get sequences from todo file 55 sequences=(`cat $todofile`) 56 if [ "$sequences" = "" ] 57 then 58 echo "nothing to do -> exit" >> $scriptlog 2>&1 59 finish >> $scriptlog 2>&1 60 fi 61 echo "sequences: "${sequences[@]} >> $scriptlog 2>&1 62 rm -v $todofile >> $scriptlog 2>&1 52 gettodo >> $scriptlog 2>&1 63 53 64 54 cd $mars 65 55 66 # write sequence file for all sequences in todo file 67 for sequence in ${sequences[@]} 68 do 56 # write sequence file for all sequences which don't have one yet 57 for (( s=0 ; s < $num ; s++ )) 58 do 59 sequence=${primaries[$s+$s]} 60 telnum=${primaries[$s+$s+1]} 69 61 printprocesslog "INFO write sequence files for sequence $sequence" 70 62 no=`printf %08d $sequence | cut -c 0-4` … … 78 70 79 71 echo "write sequencefile for sequence $sequence" >> $scriptlog 2>&1 80 primvar=$no281 72 setstatus "start" >> $scriptlog 2>&1 82 73 83 check2=`root -q -b $macrospath/writesequencefile.C\($sequence\, 1\,"\"$sequpath\""\) | tee $writesequencefilelog | intgrep`74 check2=`root -q -b $macrospath/writesequencefile.C\($sequence\,$telnum\,"\"$sequpath\""\) | tee $writesequencefilelog | intgrep` 84 75 case $check2 in 85 76 1) echo " check2=$check2 -> everything ok " >> $scriptlog 2>&1
Note:
See TracChangeset
for help on using the changeset viewer.