- Timestamp:
- 01/30/06 17:13:07 (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/datacenter/scripts/writesequencefiles
r7460 r7465 37 37 38 38 user=`whoami` 39 program=writesequencefile 39 40 source /home/$user/Mars/datacenter/scripts/sourcefile 40 41 … … 48 49 49 50 todofile=$listpath/ToDo-$table-$column.txt 50 getstatuslogpath=$logpath/getstatus/ writesequencefiles/$year51 getstatuslog=$getstatuslogpath/getstatus- writesequencefiles-$datetime.log51 getstatuslogpath=$logpath/getstatus/$program/$year 52 getstatuslog=$getstatuslogpath/getstatus-$program-$datetime.log 52 53 53 scriptlogpath=$logpath/run/ writesequencefiles/`date +%Y/%m/%d`54 scriptlogpath=$logpath/run/$program/`date +%Y/%m/%d` 54 55 makedir $scriptlogpath 55 scriptlog=$scriptlogpath/run writesequencefiles-$datetime.log56 scriptlog=$scriptlogpath/run$program-$datetime.log 56 57 57 58 date >> $scriptlog 2>&1 … … 67 68 0) echo "checklock0=$checklock0 -> continue " >> $scriptlog 2>&1;; 68 69 1) echo "checklock0=$checklock0 -> file exists " >> $scriptlog 2>&1 69 echo "-> writesequencefilesis running -> exit" >> $scriptlog 2>&170 echo "-> $program is running -> exit" >> $scriptlog 2>&1 70 71 date >> $scriptlog 2>&1 71 72 exit;; … … 78 79 79 80 case $check0 in 80 1) echo "check0=$check0 -> everything ok -> run writesequencefiles" >> $scriptlog 2>&1;;81 1) echo "check0=$check0 -> everything ok -> run $program" >> $scriptlog 2>&1;; 81 82 *) echo "check0=$check0 -> ERROR -> could not get todo list -> exit" >> $scriptlog 2>&1 82 83 rm -v $todofile >> $scriptlog 2>&1 … … 106 107 makedir $sequencepath >> $scriptlog 2>&1 107 108 108 writesequencefilelogpath=$logpath/ writesequencefile/$no109 echo " writesequencefilelogpath: "$writesequencefilelogpath >> $scriptlog 2>&1109 writesequencefilelogpath=$logpath/$program/$no 110 echo "$programlogpath: "$writesequencefilelogpath >> $scriptlog 2>&1 110 111 makedir $writesequencefilelogpath >> $scriptlog 2>&1 111 112 … … 114 115 case $check2 in 115 116 1) echo "check2=$check2 -> everything ok " >> $scriptlog 2>&1 116 echo "-> inserting the status for writesequencefile for sequence $sequence into the db" >> $scriptlog 2>&1 117 setstatuslogpath=$logpath/setstatus/writesequencefile/$no 118 makedir $setstatuslogpath >> $scriptlog 2>&1 119 setstatuslog=$setstatuslogpath/setstatus-writesequencefile-$no2.log 120 121 check4=`root -q -b $macrospath/setstatus.C+\("\"$sequence\""\,"\"$table\""\,"\"$column\""\,"\"Now()\""\) | tee $setstatuslog | grep int | sed -e 's/(int)//'` 122 case $check4 in 123 1) echo "check4=$check4 -> everything ok, status has been set" >> $scriptlog 2>&1;; 124 *) echo "check4=$check4 -> ERROR -> step could not be set" >> $scriptlog 2>&1;; 125 esac 117 echo "-> inserting the status for $program for sequence $sequence into the db" >> $scriptlog 2>&1 118 statustime="Now()" 119 failed="NULL" 120 starttime="NULL" 121 failedtime="NULL" 122 var1=$no 123 var2=$no2 124 setstatus 126 125 ;; 127 126 *) echo "check2=$check2 -> ERROR -> step has to be repeated" >> $scriptlog 2>&1;;
Note:
See TracChangeset
for help on using the changeset viewer.