Ignore:
Timestamp:
08/25/06 22:09:49 (18 years ago)
Author:
Daniela Dorner
Message:
*** empty log message ***
File:
1 edited

Legend:

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

    r7938 r7944  
    3232#
    3333
     34source `dirname $0`/sourcefile
     35printprocesslog "INFO starting $0"
    3436program=dowebplots
    35 source `dirname $0`/sourcefile
    3637
    3738set -C
    3839
    39 cd $mars
    40 
    41 datetime=`date +%F-%H-%M-%S`
    42 
    43 scriptlogpath=$runlogpath/$program
    44 makedir $scriptlogpath
    45 
    46 scriptlog=$scriptlogpath/dowebplots-$datetime.log
    47 
     40scriptlog=$runlogpath/$program-$datetime.log
    4841date >> $scriptlog 2>&1
    49 
    5042
    5143while getopts p: opts
     
    6557   echo "usage: $(basename $0) -p programname"   >> $scriptlog 2>&1
    6658   date  >> $scriptlog 2>&1
     59   printprocesslog "INFO finished $0"
    6760   exit
    6861fi
    6962
    7063# check if script is already running
    71 lockfile=$lockpath/lock-dowebplots-$type.txt
     64lockfile=$lockpath/lock-$program-$type.txt
    7265checklock  >> $scriptlog 2>&1
    73 
    7466
    7567#finding all rootfiles in the data directory, that were modified in the last 3 days
     
    8173then
    8274   echo "nothing to do -> exit"  >> $scriptlog 2>&1
    83    rm -v $lockfile >> $scriptlog 2>&1
    84    date  >> $scriptlog 2>&1
    85    exit
     75   finish >> $scriptlog 2>&1
    8676fi
    8777
    8878
     79cd $mars
     80
    8981#produce plots for each rootfile
     82printprocesslog "INFO procduing plots for each $type rootfile"
    9083for rootfile in ${rootfiles[@]}
    9184do
     
    120113   fi
    121114
     115   printprocesslog "INFO procduing plots for $rootfile"
    122116   echo "producing psfile..." >> $scriptlog 2>&1
    123117   ./showplot -b --save-as-ps=$psfile $rootfile >> $scriptlog 2>&1
     
    135129done
    136130
    137 rm -v $lockfile >> $scriptlog 2>&1
     131finish >> $scriptlog 2>&1
    138132
    139 set +C
    140 
    141 date  >> $scriptlog 2>&1
    142 
Note: See TracChangeset for help on using the changeset viewer.