diff --git a/rsselector.sh b/rsselector.sh index b0adaffff6fdf5c8afb86bfaf64ed7d60044b892..72e4fe71ff0891a725abe8223f7d156e095e389f 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 \