Changeset 7562 for trunk/MagicSoft


Ignore:
Timestamp:
03/02/06 17:51:59 (19 years ago)
Author:
Daniela Dorner
Message:
*** empty log message ***
Location:
trunk/MagicSoft/Mars
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/MagicSoft/Mars/Changelog

    r7561 r7562  
    4747     - fixed small bug
    4848
     49   * datacenter/db/dowebplots:
     50     - added option -p to the script, to be able to call the script for
     51       different programs independently
     52     - fixed find
     53
    4954
    5055
  • 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.