From 2a30422ccdb40279a0a5d6d944883536b4e9c812 Mon Sep 17 00:00:00 2001
From: Carmelo Pellegrino <carmelo.pellegrino@gmail.com>
Date: Thu, 14 May 2015 16:29:52 +0200
Subject: [PATCH] passing the run-number as a parameter to the DAQ script

---
 rsselector.sh | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/rsselector.sh b/rsselector.sh
index 83f3886..b0adaff 100644
--- a/rsselector.sh
+++ b/rsselector.sh
@@ -102,7 +102,7 @@ run_number=`get_run_number`
 
 daq_log_file=~/.km3_private/daq_${run_number}.log
 JGetMessage -H localhost -T MSG -d 3 >${daq_log_file} &
-
+## impl: get the pid and add to the list of must_kill_at_the_exit
 
 # Copy selected run setup file, changing the run number
 
@@ -111,9 +111,10 @@ JGetMessage -H localhost -T MSG -d 3 >${daq_log_file} &
 dm_driver ${run_duration} | mono DetectorControl.exe --control --reset &
 
 # Launch the DAQ
-DAQ.sh
+DAQ.sh ${run_number}
 
 # Point the browser to the correct address, if required
 zenity --question \
        --text="Would you like to open the DetectorManager GUI?" \
        --cancel-label="No, thanks" && firefox http://localhost:1301/
+
-- 
GitLab