Changeset 7944 for trunk/MagicSoft/Mars/datacenter/scripts/dowebplots
- Timestamp:
- 08/25/06 22:09:49 (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/datacenter/scripts/dowebplots
r7938 r7944 32 32 # 33 33 34 source `dirname $0`/sourcefile 35 printprocesslog "INFO starting $0" 34 36 program=dowebplots 35 source `dirname $0`/sourcefile36 37 37 38 set -C 38 39 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 40 scriptlog=$runlogpath/$program-$datetime.log 48 41 date >> $scriptlog 2>&1 49 50 42 51 43 while getopts p: opts … … 65 57 echo "usage: $(basename $0) -p programname" >> $scriptlog 2>&1 66 58 date >> $scriptlog 2>&1 59 printprocesslog "INFO finished $0" 67 60 exit 68 61 fi 69 62 70 63 # check if script is already running 71 lockfile=$lockpath/lock- dowebplots-$type.txt64 lockfile=$lockpath/lock-$program-$type.txt 72 65 checklock >> $scriptlog 2>&1 73 74 66 75 67 #finding all rootfiles in the data directory, that were modified in the last 3 days … … 81 73 then 82 74 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 86 76 fi 87 77 88 78 79 cd $mars 80 89 81 #produce plots for each rootfile 82 printprocesslog "INFO procduing plots for each $type rootfile" 90 83 for rootfile in ${rootfiles[@]} 91 84 do … … 120 113 fi 121 114 115 printprocesslog "INFO procduing plots for $rootfile" 122 116 echo "producing psfile..." >> $scriptlog 2>&1 123 117 ./showplot -b --save-as-ps=$psfile $rootfile >> $scriptlog 2>&1 … … 135 129 done 136 130 137 rm -v $lockfile >> $scriptlog 2>&1 131 finish >> $scriptlog 2>&1 138 132 139 set +C140 141 date >> $scriptlog 2>&1142
Note:
See TracChangeset
for help on using the changeset viewer.