Changeset 7314 for trunk/MagicSoft/Mars/datacenter/scripts
- Timestamp:
- 08/26/05 03:26:22 (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/datacenter/scripts/dowebplots
r7311 r7314 57 57 58 58 59 rootfiles=`find /www/htdocs/datacenter/ -name '*.root' -maxdepth 10 | grep -v '_I_' | grep -v '_Y_' `59 rootfiles=`find /www/htdocs/datacenter/ -name '*.root' -maxdepth 10 | grep -v '_I_' | grep -v '_Y_' | grep -v 'subsystemdata'` 60 60 61 61 if [ "$rootfiles" = "" ] … … 75 75 file=`basename $rootfile` 76 76 base=`echo $file | sed -e 's/.root$//g'` 77 echo "file $file" 78 echo "path $path" 79 echo "base $base" 77 echo "file $file" >> $scriptlog 2>&1;; 78 echo "path $path" >> $scriptlog 2>&1;; 79 echo "base $base" >> $scriptlog 2>&1;; 80 80 81 if ls $path/$base-tab*.gif 81 if ls $path/$base-tab*.gif >> $scriptlog 2>&1;; 82 82 then 83 83 continue … … 87 87 daterootfile=`date +%Y%m%d -r $rootfile` 88 88 dategiffile=`date +%Y%m%d -r $tabfile1.gif` 89 if [ "$dategiffile" = "" ] 89 if [ "$dategiffile" = "" ] 90 90 then 91 91 dategiffile=50000000 … … 93 93 # now=`date +%Y%m%d` 94 94 95 echo "date of rootfile: $daterootfile" 96 echo "date of giffile: $dategiffile" 95 echo "date of rootfile: $daterootfile" >> $scriptlog 2>&1;; 96 echo "date of giffile: $dategiffile" >> $scriptlog 2>&1;; 97 97 98 if [ "$dategiffile" -lt "$daterootfile" ] 98 if [ "$dategiffile" -lt "$daterootfile" ] >> $scriptlog 2>&1;; 99 99 then 100 100 continue 101 101 fi 102 102 103 echo "produce plots..." 103 echo "produce plots..." >> $scriptlog 2>&1;; 104 104 X=0 105 while [ "$X" -le "50" ] 105 while [ "$X" -le "50" ] >> $scriptlog 2>&1;; 106 106 do 107 107 X=$((X+1)) 108 echo "$X 's step"109 ./showplot -b --save-as-ps=$tabfile$X --tab=$X $rootfile 110 if ! ls $tabfile$X.ps 108 echo "$X. step" >> $scriptlog 2>&1;; 109 ./showplot -b --save-as-ps=$tabfile$X --tab=$X $rootfile >> $scriptlog 2>&1;; 110 if ! ls $tabfile$X.ps >> $scriptlog 2>&1;; 111 111 then 112 112 break 113 113 fi 114 convert -rotate 90 $tabfile$X.ps $tabfile$X.gif 114 convert -rotate 90 $tabfile$X.ps $tabfile$X.gif >> $scriptlog 2>&1;; 115 115 done 116 116 done
Note:
See TracChangeset
for help on using the changeset viewer.