From ef32fc9b00c646a776f751a1bfd4fa2dde1f3dd0 Mon Sep 17 00:00:00 2001 From: Carmelo Pellegrino <carmelo.pellegrino@gmail.com> Date: Mon, 25 May 2015 15:21:27 +0200 Subject: [PATCH] reading the path of DM from shell var --- patch-control.sh | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/patch-control.sh b/patch-control.sh index 820441f..74191e6 100755 --- a/patch-control.sh +++ b/patch-control.sh @@ -8,6 +8,11 @@ # Author: Carmelo Pellegrino <carmelo.pellegrino@bo.infn.it> # +# The configuration of this very script is perfomed via shell variables. +# Here the list of parameters is reported +# +# DM_EXE_DIR -> the absolute path to the DetectorControl.exe program + function put_lock() { touch /tmp/pc.lock } @@ -158,7 +163,7 @@ cat ${rs_file} | sed -e "s/RUNNUMBER/${run_number}/" >dm.detectorfile run_start_time=`nowUTC` # Launch the DM -dm_driver ${run_duration_seconds} | mono DetectorControl.exe --control --reset & +dm_driver ${run_duration_seconds} | mono ${DM_EXE_DIR}/DetectorControl.exe --control --reset & PROCS=(${PROCS[*]} $!) # Launch the DAQ -- GitLab