- Timestamp:
- 09/03/10 16:18:04 (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Mars/datacenter/scripts/runceres
r9898 r9919 55 55 setupfile=$setuppath/$program/`printf %03d $cereskey`/ceres.rc 56 56 57 query="SELECT fRunTypeKEY FROM CeresInfo WHERE fRunNumber="$run" AND fCeresSetupKEY="$cereskey 57 query="SELECT fRunTypeKEY FROM CeresInfo WHERE fRunNumber="$run" AND fCeresSetupKEY="$cereskey" GROUP BY fRunNumber" 58 58 runkey=`sendquery` 59 59 … … 61 61 2) printprocesslog "INFO run $run is a data run (key="$runkey")" 62 62 printprocesslog "INFO getting file numbers for run "$run 63 query="SELECT CONCAT('"$mcpath"/corsika/', RIGHT(LPAD(CeresInfo.fRunNumber, 8, '0'), 4),"64 query=$query" ' "$mcpath"/corsika/', LEFT(LPAD(CeresInfo.fRunNumber, 8, '0'), 4), '/cer000'"63 query="SELECT CONCAT('"$mcpath"/corsika/', LEFT(LPAD(CeresInfo.fRunNumber, 8, '0'), 4)," 64 query=$query" '/', RIGHT(LPAD(CeresInfo.fRunNumber, 8, '0'), 4), '/cer000', " 65 65 query=$query" RIGHT(LPAD(CeresInfo.fFileNumber, 6, '0'), 3)) from CeresInfo " 66 66 query=$query" WHERE fRunNumber="$run" AND fCeresSetupKEY="$cereskey … … 94 94 check1=$? 95 95 ;; 96 *) printprocesslog "WARN not valid fRunTypeKEY ("$runkey") was queried from the DB."97 finish96 *) printprocesslog "WARN not valid fRunTypeKEY ("$runkey") was queried from the DB." 97 check="no" 98 98 ;; 99 99 esac
Note:
See TracChangeset
for help on using the changeset viewer.