Ignore:
Timestamp:
03/02/06 17:51:59 (19 years ago)
Author:
Daniela Dorner
Message:
*** empty log message ***
File:
1 edited

Legend:

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

    r7486 r7562  
    5454checklock  >> $scriptlog 2>&1
    5555
     56
     57while getopts p: opts
     58do
     59   case $opts in
     60     p)  type=$OPTARG
     61         echo "got programname: $type"  >> $scriptlog 2>&1
     62         ;;
     63     ?)  echo "usage: $(basename $0) -p programname"  >> $scriptlog 2>&1
     64         ;;
     65   esac
     66done
     67
     68if [ "$type" = "" ]
     69then
     70   echo "no program name given -> exit"  >> $scriptlog 2>&1
     71   echo "usage: $(basename $0) -p programname"   >> $scriptlog 2>&1
     72   rm -v $lockfile >> $scriptlog 2>&1
     73   date  >> $scriptlog 2>&1
     74   exit
     75fi
     76
     77
    5678#finding all rootfiles in the webdirectory
    5779#this are all statusdisplays
    58 rootfiles=`find $webdir/{sinope,callisto,star,ganymed}/ -name '*.root' -maxdepth 10 | grep -v '_I_' | grep -v '_Y_' | grep -v 'subsystemdata' | grep -v 'star_lapalma'`
     80rootfiles=`find $webdir/$type/ -maxdepth 10 -name '*.root' | grep -v '_I_' | grep -v '_Y_' | grep -v 'subsystemdata' | grep -v 'star_lapalma' | grep -v 'summary'`
    5981
    6082#exit if no rootfiles are found
     
    6688   exit
    6789fi
     90
    6891
    6992#produce plots for each rootfile
     
    115138
    116139#find all directories with plots
    117 dirs=`find $webdir/{star,callisto,ganymed,sinope}/* -type d | grep -v merpplogs`
     140dirs=`find $webdir/$type/* -type d | grep -v merpplogs`
    118141
    119142for dir in ${dir[@]}
Note: See TracChangeset for help on using the changeset viewer.