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

waiting for completion of the DAQDriver. This resolves issue #7

parent a800a033
No related branches found
No related tags found
No related merge requests found
......@@ -173,7 +173,7 @@ run_start_time=`nowUTC`
log "Launching the DAQ with the following command line: daq.sh ${run_number} ${run_start_time} ${run_duration_seconds} ${DAQ_SERVER} ${DAQ_USER} "
daq_driver_log_file=~/.km3_private/daq_driver_${run_number}.log
daq.sh ${run_number} ${run_start_time} ${run_duration_seconds} ${DAQ_SERVER} ${DAQ_USER} >${daq_driver_log_file} &
PROCS=(${PROCS[*]} $!)
DAQ_PROC_ID=$!
# Launch the DM
dm_driver ${run_duration_seconds} | mono ${DM_EXE_DIR}/DetectorControl.exe --control --reset &
......@@ -198,6 +198,8 @@ while [ `nowUTC` -lt ${end_run_time} ]; do
sleep 10
done
wait ${DAQ_PROC_ID}
log "Run ${run_number} finished."
zenity --info --text="Run ${run_number} finished! The DAQ log file is located in ${daq_log_file}."
......
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