Changeset 18415 for trunk/DataCheck
- Timestamp:
- 01/23/16 19:41:26 (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/DataCheck/DataCheck/SchedulingPlots.sh
r17897 r18415 1 1 #!/bin/bash 2 2 # 3 # Script to copy scheduling plots to the web3 # Script to copy scheduling plots and suggested schedule to the web 4 4 # 5 5 … … 8 8 # be aware that the script only writes files which don't exist yet 9 9 # i.e. in case of a new sw version, old files have to be deleted or moved away 10 # you can also delete only the txt-files with the suggested schedule 10 11 # 11 12 # script to be executed on gate, i.e. FACT++ there has to be up-to-date … … 15 16 16 17 # number of days to be treated 17 numdays=1000 18 numdays=2000 19 20 mindate=20111101 21 maxdate=20191231 18 22 19 23 plot=/home/fact/FACT++/makeplots 24 schedule=/users/fact/FACT++.dbg/makeschedule 20 25 root=/opt/root_v5.34.10/bin/thisroot.sh 21 26 22 # creating files for Xdays (if they don't exist yet)27 # creating files for $numdays days (if they don't exist yet) 23 28 for (( i=0; i < $numdays ; i++)) 24 29 do … … 27 32 outpath=/home/factwww/scheduling/`date --date="${direction}${i}days" +%Y/%m/%d` 28 33 date=`date --date="${direction}${i}days" +%Y-%m-%d` 34 date2=`date --date="${direction}${i}days" +%Y%m%d` 35 schedfile=$outpath"/schedule-"$date2".txt" 36 37 if [ $date2 -gt $maxdate ] || [ $date2 -lt $mindate ] 38 then 39 continue 40 fi 29 41 echo -n $date 30 31 42 if ! [ -d $outpath ] 32 43 then 33 44 mkdir -p $outpath 34 45 else 35 echo $outpath" exists -> continue" 46 if ! [ -e $schedfile ] 47 then 48 echo -n " creating "$schedfile"..." 49 $schedule --config /home/fact/makeschedule_gate.rc --date '$date' >$schedfile 2>/dev/null 50 else 51 echo -n " "$outpath" already done -> continue" 52 fi 53 echo "" 36 54 continue 37 55 fi … … 50 68 pstoimg -quiet -scale $scale $file 51 69 done 70 echo -n "creating "$schedfile" ..." 71 $schedule --config /home/fact/makeschedule_gate.rc --date '$date' >$schedfile 2>/dev/null 52 72 echo "" 53 73 done
Note:
See TracChangeset
for help on using the changeset viewer.