Skip to content
Snippets Groups Projects
Commit 3820c013 authored by Carmelo Pellegrino's avatar Carmelo Pellegrino
Browse files

the Detector ID is configured via environment variable and passed to daq.sh

parent 0fe82e3f
No related branches found
No related tags found
No related merge requests found
......@@ -32,6 +32,7 @@ function check_config() {
[ -n "${PC_CONF_DIR+x}" ] || missing+=(PC_CONF_DIR)
[ -n "${DAQ_SERVER+x}" ] || missing+=(DAQ_SERVER)
[ -n "${DAQ_USER+x}" ] || missing+=(DAQ_USER)
[ -n "${DETECTOR_ID+x}" ] || missing+=(DETECTOR_ID)
if [ ! ${#missing} -eq 0 ]; then
zenity --error \
......@@ -230,7 +231,7 @@ run setup file = ${rs_file}."
# Launch the DAQ
log "Launching the DAQ with the following command line: daq.sh ${run_number} ${run_start_time} ${run_duration_seconds} ${DAQ_SERVER} ${DAQ_USER} ${duty_cycle}"
daq_driver_log_file=~/.km3_private/daq_driver_`printf "%08d" ${run_number}`.log
daq.sh ${run_number} ${run_start_time} ${run_duration_seconds} ${DAQ_SERVER} ${DAQ_USER} ${duty_cycle} >${daq_driver_log_file} &
daq.sh ${run_number} ${DETECTOR_ID} ${run_start_time} ${run_duration_seconds} ${DAQ_SERVER} ${DAQ_USER} ${duty_cycle} >${daq_driver_log_file} &
DAQ_PROC_ID=$!
PROCS+=(${DAQ_PROC_ID})
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment