Changeset 7907 for trunk/MagicSoft/Mars/datacenter/scripts/sourcefile
- Timestamp:
- 08/22/06 09:40:48 (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
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.