Changeset 7465 for trunk/MagicSoft/Mars/datacenter/scripts/correcttime
- Timestamp:
- 01/30/06 17:13:07 (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/datacenter/scripts/correcttime
r7460 r7465 39 39 40 40 user=`whoami` 41 program=correct_raw_time 41 42 source /home/$user/Mars/datacenter/scripts/sourcefile 42 43 … … 47 48 year=`date +%Y` 48 49 49 getstatuslogpath=$logpath/getstatus/ correct_raw_time/$year50 getstatuslogpath=$logpath/getstatus/$program/$year 50 51 getstatuslog=$getstatuslogpath/getstatus-$table-$column-$datetime.log 51 52 makedir $getstatuslogpath >> $scriptlog 2>&1 … … 53 54 if [ -e $listpath/ToDo-$table-$column.txt ] 54 55 then 55 echo " correct_raw_timeis already running -> exit"56 echo "$program is already running -> exit" 56 57 exit 57 58 fi … … 63 64 64 65 case $check0 in 65 1) echo "check0=$check0 -> everything ok -> run correct_raw_time";;66 1) echo "check0=$check0 -> everything ok -> run $program";; 66 67 *) echo "check0=$check0 -> ERROR -> step has to be repeated";; 67 68 esac … … 93 94 94 95 check1=0 95 echo "run correct_raw_time..."96 /home/tape/MagicReadout/correct_raw_time $infile $outfile > $timecorrpath/ correct_raw_time-$run.log96 echo "run $program..." 97 /home/tape/MagicReadout/correct_raw_time $infile $outfile > $timecorrpath/$program-$run.log 97 98 check1=$? 98 99 … … 100 101 1) echo "check1=$check1 -> everything ok -> setting status..." 101 102 no=`printf %08d $run | cut -c 1-5` 102 setstatuspath=$logpath/setstatus/correct_raw_time/$no 103 echo "setstatuspath: "$setstatuspath 104 makedir $setstatuspath 105 106 check2=`root -q -b $macrospath/setstatus.C+\("\"$run\""\,"\"$table\""\,"\"$column\""\,"\"Now()\""\) | tee $setstatuspath/setstatus-correct_raw_time-$run.log | grep int | sed -e 's/(int)//'` 107 case $check2 in 108 0) echo "check2=0 -> ERROR -> step could not be set";; 109 1) echo "check2=1 -> everything ok, status has been set";; 110 esac 103 statustime="Now()" 104 failed="NULL" 105 starttime="NULL" 106 failedtime="NULL" 107 var1=$no 108 var2=$run 109 setstatus 111 110 ;; 112 111 *) echo "check1=$check1 -> ERROR -> step has to be repeated";;
Note:
See TracChangeset
for help on using the changeset viewer.