From 941db55775d15b7e0b0760d24074461b9d1d20cb Mon Sep 17 00:00:00 2001 From: Carmelo Pellegrino <carmelo.pellegrino@gmail.com> Date: Thu, 14 May 2015 16:48:47 +0200 Subject: [PATCH] now function renamed in nowUTC and used to call daq.sh --- rsselector.sh | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/rsselector.sh b/rsselector.sh index b0adaff..72e4fe7 100644 --- a/rsselector.sh +++ b/rsselector.sh @@ -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 \ -- GitLab