Changeset 7486 for trunk/MagicSoft
- Timestamp:
- 02/08/06 18:03:41 (19 years ago)
- Location:
- trunk/MagicSoft/Mars
- Files:
-
- 28 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/Changelog
r7485 r7486 18 18 19 19 -*-*- END OF LINE -*-*- 20 2006/02/08 Daniela Dorner 21 22 * datacenter/scripts/sourcefile: 23 - implemented function checklock 24 - bugfix for failure code 25 26 * datacenter/scripts/buildsequenceentries, checkfilesforsequenceavail, 27 checkstardone, doexclusions, fillcallisto, fillganymed, fillstar, 28 makecallistolinks, runcallisto, runganymed, runstar, 29 writesequencefiles: 30 - implemented usage of function checklock 31 32 * datacenter/scripts/copyscript, doqualityplots, dowebplots, 33 insertsequences, linkmc: 34 - implemented usage of function checklock 35 - implemented variable $program 36 37 * datacenter/scripts/dodatacheck: 38 - implemented usage of function checklock 39 - implemented variable $lockfile 40 41 * datacenter/scripts/insertdatasets, mcsequences, processmcsequences: 42 - implemented usage of function checklock 43 - implemented variables $lockfile and $program 44 45 * datacenter/macros/doexclusions.C, fillganymed.C: 46 - fixed bug 47 48 * datacenter/macros/fillsinope.C, setstatus.C: 49 - improved documentation 50 51 * datacenter/scripts/filesondisk: 52 - implemented finding of zipped files 53 54 55 20 56 2006/02/08 Thomas Bretz 21 57 -
trunk/MagicSoft/Mars/datacenter/macros/doexclusions.C
r7460 r7486 196 196 if (!join2.IsNull()) 197 197 query+=GetJoin(join2.Data()); 198 query +=Form("WHERE %s", rc.GetValue("key"+key+".Cond", ""));198 query +=Form("WHERE (%s) ", rc.GetValue("key"+key+".Cond", "")); 199 199 if (!border.IsNull()) 200 200 query+=Form(" AND fRunNumber BETWEEN IF(%s>%d, %d, %s) AND IF (%s<%d, %s, %d) ", -
trunk/MagicSoft/Mars/datacenter/macros/fillganymed.C
r7460 r7486 152 152 cout << "WARNING - Could get dataset# from filename: " << fname << endl; 153 153 return 0; 154 } 154 155 155 156 Int_t ds = atoi(dataset.Data()+8); -
trunk/MagicSoft/Mars/datacenter/macros/fillsinope.C
r7460 r7486 41 41 // 42 42 // Usage: 43 // .x fillsignal.C(runnumber, kTRUE) 44 // 45 // The second argument is the 'dummy-mode'. If it is kTRUE dummy-mode is 46 // switched on and nothing will be written into the database. This is usefull 47 // for tests. 43 // .x fillsinope.C(runnumber, "datapath", kTRUE) 44 // 45 // The first argument is the runnumber (given as int), the second argument is 46 // the datapath, where the rawfiles can be found. The last argument is the 47 // 'dummy-mode'. If it is kTRUE dummy-mode is switched on and nothing will be 48 // written into the database. This is usefull for tests. 48 49 // 49 50 // Remark: Running it from the commandline looks like this: -
trunk/MagicSoft/Mars/datacenter/macros/setstatus.C
r7482 r7486 33 33 // 34 34 // Usage: 35 // .x setstatus.C+("primary","table","column","statustime"," failedcode","failedcomment","starttime","failedtime",kTRUE)35 // .x setstatus.C+("primary","table","column","statustime","returncode","failedcode","failedcodeadd","starttime","failedtime",kTRUE) 36 36 // The first argument is the primary (date/run/sequence/dataset), the second 37 37 // and third argument give the table and column of the step. The fourth -
trunk/MagicSoft/Mars/datacenter/scripts/buildsequenceentries
r7482 r7486 57 57 58 58 # check if script is already running 59 date > $lockfile >> $scriptlog 2>&1 60 checklock0=$? 61 case $checklock0 in 62 0) echo "checklock0=$checklock0 -> continue " >> $scriptlog 2>&1;; 63 1) echo "checklock0=$checklock0 -> file exists " >> $scriptlog 2>&1 64 echo "-> $program is running -> exit" >> $scriptlog 2>&1 65 date >> $scriptlog 2>&1 66 exit;; 67 *) echo "checklock0=$checklock0 -> something went completely wrong" >> $scriptlog 2>&1;; 68 esac 59 checklock >> $scriptlog 2>&1 69 60 70 61 # get todo list -
trunk/MagicSoft/Mars/datacenter/scripts/checkfilesforsequenceavail
r7482 r7486 55 55 56 56 # check if script is already running 57 date > $lockfile >> $scriptlog 2>&1 58 checklock0=$? 59 case $checklock0 in 60 0) echo "checklock0=$checklock0 -> continue " >> $scriptlog 2>&1;; 61 1) echo "checklock0=$checklock0 -> file exists " >> $scriptlog 2>&1 62 echo "-> $program is running -> exit" >> $scriptlog 2>&1 63 date >> $scriptlog 2>&1 64 exit;; 65 *) echo "checklock0=$checklock0 -> something went completely wrong" >> $scriptlog 2>&1;; 66 esac 57 checklock >> $scriptlog 2>&1 67 58 68 59 # get todo list -
trunk/MagicSoft/Mars/datacenter/scripts/checkstardone
r7482 r7486 56 56 57 57 # check if script is already running 58 date > $lockfile >> $scriptlog 2>&1 59 checklock0=$? 60 case $checklock0 in 61 0) echo "checklock0=$checklock0 -> continue " >> $scriptlog 2>&1;; 62 1) echo "checklock0=$checklock0 -> file exists " >> $scriptlog 2>&1 63 echo "-> $program is running -> exit" >> $scriptlog 2>&1 64 date >> $scriptlog 2>&1 65 exit;; 66 *) echo "checklock0=$checklock0 -> something went completely wrong" >> $scriptlog 2>&1;; 67 esac 58 checklock >> $scriptlog 2>&1 68 59 69 60 # get todo list -
trunk/MagicSoft/Mars/datacenter/scripts/copyscript
r7476 r7486 58 58 59 59 user=`whoami` 60 program=copyscript 60 61 source /home/$user/Mars/datacenter/scripts/sourcefile 61 62 … … 77 78 78 79 # check if the script is already running 79 date > $lockfile >> $scriptlog 2>&1 80 checklock0=$? 81 case $checklock0 in 82 0) echo "checklock0=$checklock0 -> continue " >> $scriptlog 2>&1;; 83 1) echo "checklock0=$checklock0 -> file exists " >> $scriptlog 2>&1 84 echo "-> copyscript is running -> exit" >> $scriptlog 2>&1 85 date >> $scriptlog 2>&1 86 exit;; 87 *) echo "checklock0=$checklock0 -> something went completely wrong" >> $scriptlog 2>&1;; 88 esac 80 checklock >> $scriptlog 2>&1 89 81 90 82 cd $transdir -
trunk/MagicSoft/Mars/datacenter/scripts/dodatacheck
r7482 r7486 52 52 53 53 todofile=$listpath/ToDo-$table-$column 54 lockfile=$lockpath/lock-getting-$program-list.txt 54 55 55 56 scriptlogpath=$logpath/run/$program/`date +%Y/%m` … … 66 67 echo " -> choose one file and start $program " >> $scriptlog 2>&1 67 68 else 68 date > $lockpath/lock-getting-$program-list.txt >> $scriptlog 2>&1 69 checklock0=$? 70 case $checklock0 in 71 0) echo "checklock0=$checklock0 -> continue " >> $scriptlog 2>&1;; 72 1) echo "checklock0=$checklock0 -> file exists " >> $scriptlog 2>&1 73 echo "-> getting list for $program is running -> exit" >> $scriptlog 2>&1 74 date >> $scriptlog 2>&1 75 exit;; 76 *) echo "checklock0=$checklock0 -> something went completely wrong" >> $scriptlog 2>&1;; 77 esac 78 69 # check if getting of list is already running 70 checklock "getting list of" >> $scriptlog 2>&1 79 71 # get todo list 80 72 getdolist >> $scriptlog 2>&1 81 82 rm -v $lockpath/lock-getting-$program-list.txt >> $scriptlog 2>&1 73 rm -v $lockfile >> $scriptlog 2>&1 83 74 fi 84 75 -
trunk/MagicSoft/Mars/datacenter/scripts/doexclusions
r7482 r7486 57 57 58 58 # check if the script is already running 59 date > $lockfile >> $scriptlog 2>&1 60 checklock0=$? 61 case $checklock0 in 62 0) echo "checklock0=$checklock0 -> continue " >> $scriptlog 2>&1;; 63 1) echo "checklock0=$checklock0 -> file exists " >> $scriptlog 2>&1 64 echo "-> getting list for $program is running -> exit" >> $scriptlog 2>&1 65 date >> $scriptlog 2>&1 66 exit;; 67 *) echo "checklock0=$checklock0 -> something went completely wrong" >> $scriptlog 2>&1;; 68 esac 59 checklock >> $scriptlog 2>&1 69 60 70 61 # get todo list -
trunk/MagicSoft/Mars/datacenter/scripts/doqualityplots
r7460 r7486 34 34 35 35 user=`whoami` 36 program=doqualityplots 36 37 source /home/$user/Mars/datacenter/scripts/sourcefile 37 38 … … 51 52 # check if script is already running 52 53 lockfile=$lockpath/lock-doqualityplots.txt 53 date > $lockfile >> $scriptlog 2>&1 54 checklock0=$? 55 case $checklock0 in 56 0) echo "checklock0=$checklock0 -> continue " >> $scriptlog 2>&1;; 57 1) echo "checklock0=$checklock0 -> file exists " >> $scriptlog 2>&1 58 echo "-> for datacheck is running -> exit" >> $scriptlog 2>&1 59 date >> $scriptlog 2>&1 60 exit;; 61 *) echo "checklock0=$checklock0 -> something went completely wrong" >> $scriptlog 2>&1;; 62 esac 54 checklock >> $scriptlog 2>&1 63 55 64 56 # producing the plots with the values from the database -
trunk/MagicSoft/Mars/datacenter/scripts/dowebplots
r7460 r7486 33 33 34 34 user=`whoami` 35 program=dowebplots 35 36 source /home/$user/Mars/datacenter/scripts/sourcefile 36 37 … … 51 52 # check if script is already running 52 53 lockfile=$lockpath/lock-dowebplots.txt 53 date > $lockfile >> $scriptlog 2>&1 54 checklock0=$? 55 case $checklock0 in 56 0) echo "checklock0=$checklock0 -> continue " >> $scriptlog 2>&1;; 57 1) echo "checklock0=$checklock0 -> file exists " >> $scriptlog 2>&1 58 echo "-> for datacheck is running -> exit" >> $scriptlog 2>&1 59 date >> $scriptlog 2>&1 60 exit;; 61 *) echo "checklock0=$checklock0 -> something went completely wrong" >> $scriptlog 2>&1;; 62 esac 63 54 checklock >> $scriptlog 2>&1 64 55 65 56 #finding all rootfiles in the webdirectory -
trunk/MagicSoft/Mars/datacenter/scripts/filesondisk
r7460 r7486 132 132 filename=$filesondisklogpath/rawfilesondisk-$date.txt 133 133 column=fRawFileAvail 134 find $datapath -name '*.raw' | cut -d_ -f2 > $filename134 find $datapath -name '*.raw' -o -name '*.gz' | cut -d_ -f2 > $filename 135 135 136 136 echo "resetting runs..." -
trunk/MagicSoft/Mars/datacenter/scripts/fillcallisto
r7482 r7486 58 58 59 59 # check if the script is already running 60 date > $lockfile >> $scriptlog 2>&1 61 checklock0=$? 62 case $checklock0 in 63 0) echo "checklock0=$checklock0 -> continue " >> $scriptlog 2>&1;; 64 1) echo "checklock0=$checklock0 -> file exists " >> $scriptlog 2>&1 65 echo "-> $program is running -> exit" >> $scriptlog 2>&1 66 date >> $scriptlog 2>&1 67 exit;; 68 *) echo "checklock0=$checklock0 -> something went completely wrong" >> $scriptlog 2>&1;; 69 esac 60 checklock >> $scriptlog 2>&1 70 61 71 62 # get todo file -
trunk/MagicSoft/Mars/datacenter/scripts/fillganymed
r7482 r7486 57 57 58 58 # check if script is already running 59 date > $lockfile >> $scriptlog 2>&1 60 checklock0=$? 61 case $checklock0 in 62 0) echo "checklock0=$checklock0 -> continue " >> $scriptlog 2>&1;; 63 1) echo "checklock0=$checklock0 -> file exists " >> $scriptlog 2>&1 64 echo "-> $program is running -> exit" >> $scriptlog 2>&1 65 date >> $scriptlog 2>&1 66 exit;; 67 *) echo "checklock0=$checklock0 -> something went completely wrong" >> $scriptlog 2>&1;; 68 esac 59 checklock >> $scriptlog 2>&1 69 60 70 61 # get todo list -
trunk/MagicSoft/Mars/datacenter/scripts/fillstar
r7482 r7486 57 57 58 58 # check if the script is already running 59 date > $lockfile >> $scriptlog 2>&1 60 checklock0=$? 61 case $checklock0 in 62 0) echo "checklock0=$checklock0 -> continue " >> $scriptlog 2>&1;; 63 1) echo "checklock0=$checklock0 -> file exists " >> $scriptlog 2>&1 64 echo "-> $program is running -> exit" >> $scriptlog 2>&1 65 date >> $scriptlog 2>&1 66 exit;; 67 *) echo "checklock0=$checklock0 -> something went completely wrong" >> $scriptlog 2>&1;; 68 esac 59 checklock >> $scriptlog 2>&1 69 60 70 61 # get todo list -
trunk/MagicSoft/Mars/datacenter/scripts/insertdatasets
r7476 r7486 33 33 34 34 user=`whoami` 35 program=insertdatasets 35 36 source /home/$user/Mars/datacenter/scripts/sourcefile 36 37 … … 40 41 41 42 datetime=`date +%F-%H-%M-%S` 43 lockfile=$lockpath/lock-insertdatasets.txt 42 44 43 45 scriptlogpath=$logpath/run/insertdatasets/`date +%Y/%m` … … 48 50 date >> $scriptlog 2>&1 49 51 50 date > $lockpath/lock-insertdatasets.txt >> $scriptlog 2>&1 51 checklock0=$? 52 case $checklock0 in 53 0) echo "checklock0=$checklock0 -> continue " >> $scriptlog 2>&1;; 54 1) echo "checklock0=$checklock0 -> file exists " >> $scriptlog 2>&1 55 echo "-> insertdatasets is running -> exit" >> $scriptlog 2>&1 56 date >> $scriptlog 2>&1 57 exit;; 58 *) echo "checklock0=$checklock0 -> something went completely wrong" >> $scriptlog 2>&1;; 59 esac 52 # check if script is already running 53 checklock >> $scriptlog 2>&1 60 54 61 55 # get all datasetfiles … … 112 106 done 113 107 114 rm -v $lock path/lock-insertdatasets.txt>> $scriptlog 2>&1108 rm -v $lockfile >> $scriptlog 2>&1 115 109 116 110 set +C -
trunk/MagicSoft/Mars/datacenter/scripts/insertsequences
r7460 r7486 34 34 35 35 user=`whoami` 36 program=insertsequences 36 37 source /home/$user/Mars/datacenter/scripts/sourcefile 37 38 … … 51 52 52 53 # check if script is already running 53 date > $lockpath/lock-insertsequences.txt >> $scriptlog 2>&1 54 checklock0=$? 55 case $checklock0 in 56 0) echo "checklock0=$checklock0 -> continue " >> $scriptlog 2>&1;; 57 1) echo "checklock0=$checklock0 -> file exists " >> $scriptlog 2>&1 58 echo "-> insertsequences is running -> exit" >> $scriptlog 2>&1 59 date >> $scriptlog 2>&1 60 exit;; 61 *) echo "checklock0=$checklock0 -> something went completely wrong" >> $scriptlog 2>&1;; 62 esac 54 checklock >> $scriptlog 2>&1 63 55 64 56 # finding manual written sequence files (marked by the comment '#manually changed') -
trunk/MagicSoft/Mars/datacenter/scripts/linkmc
r7472 r7486 43 43 44 44 user=`whoami` 45 program=linkmc 45 46 source /home/$user/Mars/datacenter/scripts/sourcefile 46 47 … … 55 56 # check if script is already running 56 57 lockfile=$lockpath/lock-mclinks.txt 57 date > $lockfile >> $scriptlog 2>&1 58 checklock0=$? 59 case $checklock0 in 60 0) echo "checklock0=$checklock0 -> continue " >> $scriptlog 2>&1;; 61 1) echo "checklock0=$checklock0 -> file exists " >> $scriptlog 2>&1 62 echo "-> linkmc is running -> exit" >> $scriptlog 2>&1 63 date >> $scriptlog 2>&1 64 exit;; 65 *) echo "checklock0=$checklock0 -> something went completely wrong" >> $scriptlog 2>&1;; 66 esac 58 checklock >> $scriptlog 2>&1 67 59 68 60 mccampath=/montecarlo/camera -
trunk/MagicSoft/Mars/datacenter/scripts/makecallistolinks
r7483 r7486 50 50 # check if script is already running 51 51 lockfile=$lockpath/lock-$program.txt 52 date > $lockfile >> $scriptlog 2>&1 53 checklock0=$? 54 case $checklock0 in 55 0) echo "checklock0=$checklock0 -> continue " >> $scriptlog 2>&1;; 56 1) echo "checklock0=$checklock0 -> file exists " >> $scriptlog 2>&1 57 echo "-> $program is running -> exit" >> $scriptlog 2>&1 58 date >> $scriptlog 2>&1 59 exit;; 60 *) echo "checklock0=$checklock0 -> something went completely wrong" >> $scriptlog 2>&1;; 61 esac 52 checklock >> $scriptlog 2>&1 62 53 63 54 # reason why calibration with standard callisto.rc fails -
trunk/MagicSoft/Mars/datacenter/scripts/mcsequences
r7460 r7486 35 35 36 36 user=`whoami` 37 program=mcsequences 37 38 source /home/$user/Mars/datacenter/scripts/sourcefile 38 39 39 40 set -C 40 41 41 scriptlogpath=$logpath/run/ mcsequences/`date +%Y/%m/%d`42 scriptlogpath=$logpath/run/$program/`date +%Y/%m/%d` 42 43 makedir $scriptlogpath 43 scriptlog=$scriptlogpath/ mcsequences`date +%F`.log44 scriptlog=$scriptlogpath/$program`date +%F`.log 44 45 45 46 date >> $scriptlog 2>&1 46 47 47 48 # check if script is already running 48 lockfile=$lockpath/lock-mcsequences.txt 49 date > $lockfile >> $scriptlog 2>&1 50 checklock0=$? 51 case $checklock0 in 52 0) echo "checklock0=$checklock0 -> continue " >> $scriptlog 2>&1;; 53 1) echo "checklock0=$checklock0 -> file exists " >> $scriptlog 2>&1 54 echo "-> linkmc is running -> exit" >> $scriptlog 2>&1 55 date >> $scriptlog 2>&1 56 exit;; 57 *) echo "checklock0=$checklock0 -> something went completely wrong" >> $scriptlog 2>&1;; 58 esac 49 lockfile=$lockpath/lock-$program.txt 50 checklock >> $scriptlog 2>&1 59 51 60 52 -
trunk/MagicSoft/Mars/datacenter/scripts/processmcsequences
r7477 r7486 33 33 34 34 user=`whoami` 35 program=processmcsequences 35 36 source /home/$user/Mars/datacenter/scripts/sourcefile 36 37 37 38 set -C 38 39 39 scriptlogpath=$logpath/run/ processmcsequences/`date +%Y/%m/%d`40 scriptlogpath=$logpath/run/$program/`date +%Y/%m/%d` 40 41 makedir $scriptlogpath 41 scriptlog=$scriptlogpath/ processmcsequences`date +%F-%H-%M-%S`.log42 scriptlog=$scriptlogpath/$program`date +%F-%H-%M-%S`.log 42 43 43 44 date >> $scriptlog 2>&1 44 45 45 46 # check if script is already running 46 lockfile=$lockpath/lock-processmcsequences.txt 47 date > $lockfile >> $scriptlog 2>&1 48 checklock0=$? 49 case $checklock0 in 50 0) echo "checklock0=$checklock0 -> continue " >> $scriptlog 2>&1;; 51 1) echo "checklock0=$checklock0 -> file exists " >> $scriptlog 2>&1 52 echo "-> processmcsequences is running -> exit" >> $scriptlog 2>&1 53 date >> $scriptlog 2>&1 54 exit;; 55 *) echo "checklock0=$checklock0 -> something went completely wrong" >> $scriptlog 2>&1;; 56 esac 47 lockfile=$lockpath/lock-$program.txt 48 checklock >> $scriptlog 2>&1 57 49 58 50 mcpath=/montecarlo/rawfiles -
trunk/MagicSoft/Mars/datacenter/scripts/runcallisto
r7482 r7486 62 62 cd $mars 63 63 64 # check if getting of list is already running65 date > $lockfile >> $scriptlog 2>&166 checklock0=$?67 case $checklock0 in68 0) echo "checklock0=$checklock0 -> continue " >> $scriptlog 2>&1;;69 1) echo "checklock0=$checklock0 -> file exists " >> $scriptlog 2>&170 echo "-> getting list for $program is running -> exit" >> $scriptlog 2>&171 date >> $scriptlog 2>&172 exit;;73 *) echo "checklock0=$checklock0 -> something went completely wrong" >> $scriptlog 2>&1;;74 esac75 76 64 # get todo file 77 65 echo "checking if other todo-files are there" >> $scriptlog 2>&1 … … 81 69 echo " -> choose one file and start calibrating" >> $scriptlog 2>&1 82 70 else 71 # check if getting of list is already running 72 checklock "getting list of" >> $scriptlog 2>&1 83 73 # get todo list 84 74 getdolist >> $scriptlog 2>&1 -
trunk/MagicSoft/Mars/datacenter/scripts/runganymed
r7482 r7486 58 58 cd $mars 59 59 60 # check if getting of list is already running61 date > $lockfile >> $scriptlog 2>&162 checklock0=$?63 case $checklock0 in64 0) echo "checklock0=$checklock0 -> continue " >> $scriptlog 2>&1;;65 1) echo "checklock0=$checklock0 -> file exists " >> $scriptlog 2>&166 echo "-> getting list for $program is running -> exit" >> $scriptlog 2>&167 date >> $scriptlog 2>&168 exit;;69 *) echo "checklock0=$checklock0 -> something went completely wrong" >> $scriptlog 2>&1;;70 esac71 72 60 # finding todo file 73 61 echo "checking if other todo-files are there" >> $scriptlog 2>&1 … … 77 65 echo " -> choose one file and run $program" >> $scriptlog 2>&1 78 66 else 67 # check if getting of list is already running 68 checklock "getting list of" >> $scriptlog 2>&1 79 69 # get todo list 80 70 getdolist >> $scriptlog 2>&1 -
trunk/MagicSoft/Mars/datacenter/scripts/runstar
r7482 r7486 58 58 cd $mars 59 59 60 # check if getting of list is already running61 date > $lockfile >> $scriptlog 2>&162 checklock0=$?63 case $checklock0 in64 0) echo "checklock0=$checklock0 -> continue " >> $scriptlog 2>&1;;65 1) echo "checklock0=$checklock0 -> file exists " >> $scriptlog 2>&166 echo "-> getting list for $program is running -> exit" >> $scriptlog 2>&167 date >> $scriptlog 2>&168 exit;;69 *) echo "checklock0=$checklock0 -> something went completely wrong" >> $scriptlog 2>&1;;70 esac71 72 60 # finding todo file 73 61 echo "checking if other todo-files are there" >> $scriptlog 2>&1 … … 77 65 echo " -> choose one file and start calculation of image parameter" >> $scriptlog 2>&1 78 66 else 67 # check if getting of list is already running 68 checklock "getting list of" >> $scriptlog 2>&1 79 69 # get todo list 80 70 getdolist >> $scriptlog 2>&1 -
trunk/MagicSoft/Mars/datacenter/scripts/sourcefile
r7482 r7486 100 100 } 101 101 102 function checklock() 103 { 104 date > $lockfile 105 checklock0=$? 106 case $checklock0 in 107 0) echo "checklock0=$checklock0 -> continue " ;; 108 1) echo "checklock0=$checklock0 -> file $lockfile exists " 109 echo "-> $@ $program is running -> exit" 110 date 111 exit;; 112 *) echo "checklock0=$checklock0 -> something went completely wrong" ;; 113 esac 114 } 115 102 116 function getdolist() 103 117 { … … 162 176 returncode=$check 163 177 failedcode=$com 164 failedcodeadd=$comadd 178 if ! [ "$comadd" = "" ] 179 then 180 failedcodeadd=$comadd 181 fi 165 182 failedtime="Now()" 166 183 ;; -
trunk/MagicSoft/Mars/datacenter/scripts/writesequencefiles
r7482 r7486 57 57 58 58 # check if script is already running 59 date > $lockfile >> $scriptlog 2>&1 60 checklock0=$? 61 case $checklock0 in 62 0) echo "checklock0=$checklock0 -> continue " >> $scriptlog 2>&1;; 63 1) echo "checklock0=$checklock0 -> file exists " >> $scriptlog 2>&1 64 echo "-> $program is running -> exit" >> $scriptlog 2>&1 65 date >> $scriptlog 2>&1 66 exit;; 67 *) echo "checklock0=$checklock0 -> something went completely wrong" >> $scriptlog 2>&1;; 68 esac 59 checklock >> $scriptlog 2>&1 69 60 70 61 # get todo list
Note:
See TracChangeset
for help on using the changeset viewer.