Ignore:
Timestamp:
08/26/05 03:26:22 (19 years ago)
Author:
Daniela Dorner
Message:
*** empty log message ***
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/MagicSoft/Mars/datacenter/scripts/dowebplots

    r7311 r7314  
    5757
    5858
    59 rootfiles=`find /www/htdocs/datacenter/ -name '*.root' -maxdepth 10 | grep -v '_I_' | grep -v '_Y_'`
     59rootfiles=`find /www/htdocs/datacenter/ -name '*.root' -maxdepth 10 | grep -v '_I_' | grep -v '_Y_' | grep -v 'subsystemdata'`
    6060
    6161if [ "$rootfiles" = "" ]
     
    7575   file=`basename $rootfile`
    7676   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;;
    8080   
    81    if ls $path/$base-tab*.gif
     81   if ls $path/$base-tab*.gif >> $scriptlog 2>&1;;
    8282   then
    8383      continue
     
    8787   daterootfile=`date +%Y%m%d -r $rootfile`
    8888   dategiffile=`date +%Y%m%d -r $tabfile1.gif`
    89    if [ "$dategiffile" = "" ]
     89   if [ "$dategiffile" = "" ]  
    9090   then
    9191      dategiffile=50000000
     
    9393#   now=`date +%Y%m%d`
    9494
    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;;
    9797   
    98    if [ "$dategiffile" -lt "$daterootfile" ]
     98   if [ "$dategiffile" -lt "$daterootfile" ] >> $scriptlog 2>&1;;
    9999   then
    100100      continue
    101101   fi
    102102   
    103    echo "produce plots..."
     103   echo "produce plots..." >> $scriptlog 2>&1;;
    104104   X=0
    105    while [ "$X" -le "50" ]
     105   while [ "$X" -le "50" ] >> $scriptlog 2>&1;;
    106106   do
    107107      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;;
    111111      then
    112112         break
    113113      fi
    114       convert -rotate 90 $tabfile$X.ps $tabfile$X.gif
     114      convert -rotate 90 $tabfile$X.ps $tabfile$X.gif  >> $scriptlog 2>&1;;
    115115   done
    116116done
Note: See TracChangeset for help on using the changeset viewer.