Changeset 18765
- Timestamp:
- 02/20/17 13:26:16 (8 years ago)
- Location:
- trunk/DataCheck/Processing
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/DataCheck/Processing/RunCallisto.sh
r18250 r18765 9 9 set -C 10 10 11 for (( i=0; i<100; i++ )) 12 do 13 # get todo list 14 gettodo "1" 11 # get night and seqid 12 if [ "$night" = "" ] && [ "$seqid" = "" ] 13 then 14 # if no number are provided by JobManager 15 for (( i=0; i<100; i++ )) 16 do 17 # avoid too many simultaneous queries 18 sleep $(( ( RANDOM % 10 ) + 1 )) 19 # get todo list 20 gettodo "1" 21 echo ${primaries[@]} 15 22 16 # get all needed variables 17 night=${primaries[0]} 18 seqid=${primaries[1]} 23 # get all needed variables 24 night=${primaries[0]} 25 seqid=${primaries[1]} 26 nightpath=`echo $night | cut -c 1-4`"/"`echo $night | cut -c 5-6`"/"`echo $night | cut -c 7-8` 27 seqnum=$night"_"`printf %03d $seqid` 28 29 # check if script is already running 30 lockfile=$lockpath"/lock-"$program"-"$seqnum".txt" 31 checklock continue 32 printprocesslog "INFO got todo with try #"$i 33 break 34 done 35 else 19 36 nightpath=`echo $night | cut -c 1-4`"/"`echo $night | cut -c 5-6`"/"`echo $night | cut -c 7-8` 20 37 seqnum=$night"_"`printf %03d $seqid` 21 22 38 # check if script is already running 23 39 lockfile=$lockpath"/lock-"$program"-"$seqnum".txt" 24 checklock continue25 printprocesslog "INFO got todo with try #"$i26 break27 done 40 checklock 41 s=0 42 primaries=( $night $seqid ) 43 fi 28 44 29 45 # get all needed paths and files … … 47 63 cd $mars 48 64 65 # set status in DB 66 # maybe already done in JobManager 67 # but do it again to have real runtime 68 setstatus "start" 69 49 70 # run callisto 50 71 printprocesslog "INFO starting callisto.C for sequence "$seqnum 51 setstatus "start"52 72 53 73 printprocesslog "DEBUG root -q -b fact/analysis/callisto.C\("\"$seqfile\""\,"\"$outpath\""\,\""$drstime"\"\,\""$delays"\"\) | tee $logfile " -
trunk/DataCheck/Processing/RunStar.sh
r17891 r18765 9 9 set -C 10 10 11 for (( i=0; i<100; i++ )) 12 do 13 # get todo list 14 gettodo "1" 11 # get night and seqid 12 if [ "$night" = "" ] && [ "$seqid" = "" ] 13 then 14 # if no number are provided by JobManager 15 for (( i=0; i<100; i++ )) 16 do 17 # avoid too many simultaneous queries 18 sleep $(( ( RANDOM % 10 ) + 1 )) 19 # get todo list 20 gettodo "1" 21 echo ${primaries[@]} 15 22 16 # get all needed variables 17 night=${primaries[0]} 18 seqid=${primaries[1]} 23 # get all needed variables 24 night=${primaries[0]} 25 seqid=${primaries[1]} 26 nightpath=`echo $night | cut -c 1-4`"/"`echo $night | cut -c 5-6`"/"`echo $night | cut -c 7-8` 27 seqnum=$night"_"`printf %03d $seqid` 28 29 # check if script is already running 30 lockfile=$lockpath"/lock-"$program"-"$seqnum".txt" 31 checklock continue 32 printprocesslog "INFO got todo with try #"$i 33 break 34 done 35 else 19 36 nightpath=`echo $night | cut -c 1-4`"/"`echo $night | cut -c 5-6`"/"`echo $night | cut -c 7-8` 20 37 seqnum=$night"_"`printf %03d $seqid` 21 22 38 # check if script is already running 23 39 lockfile=$lockpath"/lock-"$program"-"$seqnum".txt" 24 checklock continue25 printprocesslog "INFO got todo with try #"$i26 break27 done 40 checklock 41 s=0 42 primaries=( $night $seqid ) 43 fi 28 44 29 45 # get all needed paths and files … … 36 52 cd $mars 37 53 54 # set status in DB 55 # maybe already done in JobManager 56 # but do it again to have real runtime 57 setstatus "start" 58 38 59 # run star 39 60 printprocesslog "INFO starting star.C for sequence "$seqnum 40 setstatus "start"41 61 42 62 #check1=`root -q -b fact/star.C\("\"$seqfile\""\,7.5\,3.9\,"\"$inpath\""\,"\"$outpath\""\) | tee $logfile | intgrep` … … 65 85 0) printprocesslog "INFO merpp was successful for sequence "$seqnum" (check1=$check1)" 66 86 ;; 67 *) printprocesslog "ERROR merpp 3.C failed for sequence "$seqnum" (check1=$check1)"68 check=10 87 *) printprocesslog "ERROR merpp.C failed for sequence "$seqnum" (check1=$check1)" 88 check=10$check1 69 89 ;; 70 90 esac
Note:
See TracChangeset
for help on using the changeset viewer.