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

now function renamed in nowUTC and used to call daq.sh

parent b5a0b6a5
No related branches found
No related tags found
No related merge requests found
......@@ -35,7 +35,7 @@ function log() {
echo ${*} >>${logfile}
}
function now() {
function nowUTC() {
# print the number of seconds elapsed since Jan 1 1970 00:00 in UTC
date -u +%s
}
......@@ -106,12 +106,13 @@ JGetMessage -H localhost -T MSG -d 3 >${daq_log_file} &
# Copy selected run setup file, changing the run number
run_start_time=`nowUTC`
# Launch the DM
dm_driver ${run_duration} | mono DetectorControl.exe --control --reset &
# Launch the DAQ
DAQ.sh ${run_number}
daq.sh ${run_number} ${run_start_time} ${run_duration}
# Point the browser to the correct address, if required
zenity --question \
......
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