Changeset 7907 for trunk/MagicSoft/Mars/datacenter/scripts
- Timestamp:
- 08/22/06 09:40:48 (18 years ago)
- Location:
- trunk/MagicSoft/Mars/datacenter/scripts
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/datacenter/scripts/copyscript
r7902 r7907 212 212 catalog=$setuppath/$magfav #current catalogfile 213 213 diff=$setuppath/.diff #file to store difference 214 #addresses to which the changes are sent215 adrs="datacenter@astro.uni-wuerzburg.de, tbretz@astro.uni-wuerzburg.de"216 214 217 215 #getting new catalogfiles … … 240 238 cat $diff | grep '<' >> $scriptlog 2>&1 241 239 echo " -> please check the file $catfile" >> $scriptlog 2>&1 242 #inform $adr about removed lines240 #inform $adrs about removed lines 243 241 nail -s 'catalogfile - removed lines' $adrs < $diff 244 242 exit … … 262 260 exit 263 261 fi 264 #inform $adr about changes262 #inform $adrs about changes 265 263 echo "file has been rsynced sucessfully -> sending email" >> $scriptlog 2>&1 266 264 nail -s 'new catalogfile installed - new lines' $adrs < $diff … … 273 271 cat $diff | grep '<' >> $scriptlog 2>&1 274 272 echo " -> please check the file $catfile" >> $scriptlog 2>&1 275 #inform $adr about removed lines273 #inform $adrs about removed lines 276 274 nail -s 'catalogfile - removed lines' $adrs < $diff 277 275 exit -
trunk/MagicSoft/Mars/datacenter/scripts/sourcefile
r7902 r7907 27 27 # This a resource file for the scripts, in which the standard paths and 28 28 # functions, which are needed more often are stored. 29 # 30 31 export ROOTSYS=/opt/root_v4.04.02g 32 export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$ROOTSYS/lib 33 export PATH=$PATH:$ROOTSYS/bin 29 # Only constant variables are stored here, changing variables are stored 30 # in datacenter/scripts/setup 31 # 32 33 source `dirname $0`/setup 34 34 35 35 mars=`dirname $0 | sed -e 's/\/datacenter\/scripts//'` 36 37 36 macrospath=$mars/datacenter/macros 38 37 scriptspath=$mars/datacenter/scripts 39 38 40 logpath=/magic/datacenter/autologs41 lockpath=/magic/datacenter/locks42 listpath=/magic/datacenter/lists43 setuppath=/magic/datacenter/setup44 45 datapath=/magic/data46 subsystempath=/magic/subsystemdata47 sequpath=/magic/sequences48 datasetpath=/magic/datasets49 50 39 webpath=/www/htdocs/datacenter 51 40 … … 53 42 54 43 check="ok" 55 56 44 57 45 #failed codes … … 82 70 Ffillganymed=21 83 71 84 85 72 # setup for jobmanager 73 steps=$mars/steps.rc 74 75 pno=0 76 pnototal=0 77 running=0 78 queued=0 79 runningscript=0 80 queuedscript=0 81 82 83 function setzero() 84 { 85 val=$@ 86 if [ "$val" == "" ] 87 then 88 test=`condor_q -global` 89 if [ "$test" == "" ] 90 then 91 echo $max 92 else 93 echo 0 94 fi 95 else 96 echo $val 97 fi 98 } 99 100 101 102 103 # in the following the function, which are needed by several scripts, are 104 # defined 105 106 # function to exit a script properly 86 107 function finish() 87 108 { … … 92 113 } 93 114 115 # function to make sure that a directory is made 94 116 function makedir() 95 117 { … … 105 127 } 106 128 129 # function to check if a process is already locked 107 130 function checklock() 108 131 { … … 119 142 } 120 143 144 # function calling the macro, which is producing the todo-list 121 145 function getdolist() 122 146 { … … 164 188 } 165 189 190 # function calling the macro to set the status, after a process has finished 166 191 function setstatus() 167 192 {
Note:
See TracChangeset
for help on using the changeset viewer.