Changeset 7426 for trunk/MagicSoft/Mars/datacenter/scripts
- Timestamp:
- 11/25/05 11:17:51 (19 years ago)
- Location:
- trunk/MagicSoft/Mars/datacenter/scripts
- Files:
-
- 2 added
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/datacenter/scripts/checkfilesforsequenceavail
r7265 r7426 82 82 echo "checking files for sequence $sequence..." >> $scriptlog 2>&1 83 83 no=`printf %08d $sequence | cut -c 0-4` 84 no2=`printf %08d $sequence` 84 85 outpath=$logpath/checkfileavail/$no 85 86 echo "outpath: "$outpath >> $scriptlog 2>&1 86 87 makedir $outpath >> $scriptlog 2>&1 88 89 sequencefile=$sequpath/$no/sequence$no2.txt 87 90 88 check1=`root -q -b $macrospath/checkfileavail.C+\(\""$sequence \""\) | tee $outpath/checkfileavail-$sequence.log | grep int | sed -e 's/(int)//'`91 check1=`root -q -b $macrospath/checkfileavail.C+\(\""$sequencefile\""\) | tee $outpath/checkfileavail-$sequence.log | grep int | sed -e 's/(int)//'` 89 92 90 93 case $check1 in -
trunk/MagicSoft/Mars/datacenter/scripts/dowebplots
r7322 r7426 72 72 do 73 73 date >> $scriptlog 2>&1 74 path=`dirname $rootfile` 75 file=`basename $rootfile` 76 base=`echo $file | sed -e 's/.root$//g'` 77 echo "rootfile: $file" >> $scriptlog 2>&1 78 echo "path : $path" >> $scriptlog 2>&1 79 echo "base : $base" >> $scriptlog 2>&1 74 psfile=`echo $file | sed -e 's/.root$/.ps/g'` 75 echo "rootfile: $rootfile" >> $scriptlog 2>&1 76 echo "psfile: $psfile" >> $scriptlog 2>&1 80 77 81 X=0 82 while [ "$X" -le "50" ] >> $scriptlog 2>&1 83 do 84 X=$((X+1)) 85 echo "$X. step" >> $scriptlog 2>&1 78 daterootfile=`date +%Y%m%d -r $rootfile` >> $scriptlog 2>&1 79 datepsfile=`date +%Y%m%d -r $psfile` >> $scriptlog 2>&1 80 if [ "$datepsfile" = "" ] 81 then 82 echo "date of psfile is empty -> the file $psfile doesn't exist" >> $scriptlog 2>&1 83 echo " -> setting date to 0 and producing psfile..." >> $scriptlog 2>&1 84 datepsfile=0 85 fi 86 86 87 tabfile=$path/$base-tab$X 88 daterootfile=`date +%Y%m%d -r $rootfile` >> $scriptlog 2>&1 89 dategiffile=`date +%Y%m%d -r $tabfile.gif` >> $scriptlog 2>&1 90 if [ "$dategiffile" = "" ] 91 then 92 echo "date of gif-file is empty -> the file $tabfile.gif doesn't exist" >> $scriptlog 2>&1 93 echo " -> setting date to 0 and producing gif-file..." >> $scriptlog 2>&1 94 dategiffile=0 95 fi 87 echo "checking date..." >> $scriptlog 2>&1 88 echo "date of rootfile: $daterootfile" >> $scriptlog 2>&1 89 echo "date of psfile: $datepsfile" >> $scriptlog 2>&1 96 90 97 echo "checking date..." >> $scriptlog 2>&1 98 echo "date of rootfile: $daterootfile" >> $scriptlog 2>&1 99 echo "date of giffile: $dategiffile" >> $scriptlog 2>&1 91 if [ "$datepsfile" -gt "$daterootfile" ] >> $scriptlog 2>&1 92 then 93 echo "psfile is older than rootfile -> continue " >> $scriptlog 2>&1 94 continue 95 fi 100 96 101 if [ "$dategiffile" -gt "$daterootfile" ] >> $scriptlog 2>&1 102 then 103 echo "gif-file is older than root-file -> continue " >> $scriptlog 2>&1 104 continue 105 fi 97 echo "producing psfile..." >> $scriptlog 2>&1 98 ./showplot -b --save-as-ps=$psfile $rootfile >> $scriptlog 2>&1 106 99 107 echo "producing ps-file with plots for tab $X..." >> $scriptlog 2>&1 108 ./showplot -b --save-as-ps=$tabfile --tab=$X $rootfile >> $scriptlog 2>&1 109 if ! ls $tabfile.ps >> $scriptlog 2>&1 110 then 111 echo "tab $X doen't exist -> break" >> $scriptlog 2>&1 112 break 113 fi 114 echo "converting plots to gif for tab $X..." >> $scriptlog 2>&1 115 convert -verbose -rotate 90 $tabfile.ps $tabfile.gif >> $scriptlog 2>&1 116 done 100 echo "converting plots to png..." >> $scriptlog 2>&1 101 pstoimg -antialias -flip r270 -density 100 -type png -multipage $psfile >> $scriptlog 2>&1 117 102 done 118 103 -
trunk/MagicSoft/Mars/datacenter/scripts/runcallisto
r7344 r7426 94 94 todofiles=`ls -r $listpath/ToDo-$table-$column-*` 95 95 96 echo "todofiles: "${todofiles[@]} >> $scriptlog 2>&196 #echo "todofiles: "${todofiles[@]} >> $scriptlog 2>&1 97 97 98 98 for todofile in ${todofiles[@]} … … 192 192 then 193 193 echo "no ccfile found for run "$runno >> $scriptlog 2>&1 194 break 194 break 2 195 195 fi 196 196 echo "cacofile: "$cacofile >> $scriptlog 2>&1 … … 211 211 continue 212 212 else 213 echo "cacofile: "$cacofile >> $scriptlog 2>&1 213 214 break 214 echo "cacofile: "$cacofile >> $scriptlog 2>&1215 215 fi 216 216 done -
trunk/MagicSoft/Mars/datacenter/scripts/runganymed
r7381 r7426 86 86 todofiles=`ls $listpath/ToDo-$table-$column-*` 87 87 88 echo "todofiles: "${todofiles[@]} >> $scriptlog 2>&188 #echo "todofiles: "${todofiles[@]} >> $scriptlog 2>&1 89 89 90 90 for todofile in ${todofiles[@]} -
trunk/MagicSoft/Mars/datacenter/scripts/runstar
r7265 r7426 85 85 todofiles=`ls $listpath/ToDo-$table-$column-*` 86 86 87 echo "todofiles: "${todofiles[@]} >> $scriptlog 2>&187 #echo "todofiles: "${todofiles[@]} >> $scriptlog 2>&1 88 88 89 89 for todofile in ${todofiles[@]}
Note:
See TracChangeset
for help on using the changeset viewer.